g_form.setMandatory(<variableset>,false) not working after upgrade to Orlando

Luke Turner1
Mega Guru

Since upgrading to Orlando the following script has stopped working on the portal:

g_form.setMandatory("<variable set>", false);
g_form.setDisplay("<variable set>", false);

After playing with it I found that it was just the setMandatory that is not working, I'm not sure if this is intentional or a bug with Orlando.

Are there any other ways of doing the same thing without having to set all variables to be not mandatory individually as there are a quite a few variable and they might change at a later stage.

1 ACCEPTED SOLUTION

ServiceNow have told me that they have raised a problem and are targeting a fix for Paris.

View solution in original post

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Luke,

I don't see this issue listed as one of the PRB here https://docs.servicenow.com/bundle/orlando-release-notes/page/release-notes/quality/orlando-all-othe...

For testing purposes, could you please create a test catalog item and include a sample script to set field mandatory. This will enable us to determine if the issue is for a specific item or across all items.

 

- Pradeep Sharma

Hi Pardeep,

 

I have recreated this on my dev instance with the same affect:

find_real_file.png

find_real_file.pngThis is still working on the Main UI but not on the portal.

However this exact same code was working on Madrid and New York. This might be an intentional change but it seems odd.

Hi Luke,

any error you could see in browser console?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Doesn't look like it.

 

find_real_file.png

It appears that this just isn't supported in the portal anymore I'm not sure.