Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Javascript on Case form - Set null value on subject field

(0) ShareShare
ReportReport
Posted on by
Hello,
When I use a javascript to set null value on subject field on case form, the "id" value of field is set correctly to null, but the text in field remain populated and not return to blank value.
So for the user, seems that the subject is setting, even if the subject is null, and effectively, when the user try to save the record, the system rise an error for mandatory field subject.
There is a way to reset to empty string the field "subject" when I use formContext.getAttribute("subjectid").setValue(null) to null?
In the attachment, the value of my "subject" field after formContext.getAttribute("subjectid").setValue(null) instruction.
Thanks in advance
Gianluca
Categories:

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans