Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Pop ups for conditional required fields

Avatar

Level 2

So I have a few fields in my form that will become visible and mandatory upon the event. In most cases, it is when the user clicks a "yes" radio button, which then makes a required field visible (a, "if yes, then explain" situation).

However, everytime the user clicks yes, a pop-up notification comes up telling the user to fill in this newly visible field. It is super annoying.

I'm not awesome with Scripting, but here is what my script looks like:

form1.MainPage.MTAIn.BottomUseofMatMTA-InSub.MTA-InOtherMatSub.OtherMaterialSub.PurchaseOfMatSub.PurchaseOtherMaterRL.MTA-InPurOMNo::click - (JavaScript, client)
this.resolveNode("Whereothermatsub.WhereothermaterTF").mandatory = "disabled";
this.resolveNode("Whereothermatsub").presence = "hidden";


form1.MainPage.MTAIn.BottomUseofMatMTA-InSub.MTA-InOtherMatSub.OtherMaterialSub.PurchaseOfMatSub.PurchaseOtherMaterRL.MTA-InPurOMYes::click - (JavaScript, client)
this.resolveNode("Whereothermatsub.WhereothermaterTF").mandatory = "error";
this.resolveNode("Whereothermatsub").presence = "visible";

Is there a way to get rid of these messages?

Thanks!

1 Reply

Avatar

Level 6

There is likely some other code.

App.Alert is commonly used for pop-ups