web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

How to add div tag or new row in create case form before subject

(0) ShareShare
ReportReport
Posted on by 25

Hi Team,

How to add div tag or new row in create case form before the subject. Please find the marked area.  The purpose of this we need to show the description based on the subject dropdown list selection values 

For example: If we select a subject from the dropdown as accounting then we need to so the description about the accounting in the above area.

Can you help me how to achieve this one in case the creation form?

Please find the screenshot.

pastedimage1604578576622v2.png

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi partner,

    It is difficult to create a dynamic div tag it in portal, but you can create a new field to show description based on subject value with the help of javascript.

    Here are steps.

    1.Go Settings > Customization > Customize the system> Entities > Case.

    Create a new field named description and add it to the Web-Create Case form.

    2.Write js code.

    (1) Get subject value id.

    The subject field is special, it shows name in the form but it store guid to database.

    You can write following code in js, when you select one subject, it will open a dialog to provide if of it.

    alert($("#subjectid").val());

    pastedimage1604653688980v1.png

    (2) Add js code to the create case form of portal.

    Select subject and click Edit button.

    pastedimage1604653723606v2.png

    It will open one dialog and switch to Options tab and add js code.

    pastedimage1604653787241v3.png

    $(document).ready(function () {
    	console.log("ready!");
    	$("#subjectid").change(function () {
    		alert($("#subjectid").val());
    		if ($("#subjectid").val() === "07c04ad1-d4e9-ea11-a817-000d3a1c5d97") {
    			$("#new_description").val("test successfully");
    		} 
    	});
    });

    Save and refresh page to test.

    pastedimage1604653845321v4.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

    pastedimage1604890915347v1.png

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
11manish Profile Picture

11manish 36

#2
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 32

#3
ManoVerse Profile Picture

ManoVerse 30 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans