Attachment mandatory in catalog task when specific user select

Sirri
Tera Guru

Hi All,

 

In the catalog item  variable is Risk Owner (risk_owner) it's type is Reference(sys_user).

 

when we select any user. If that user grade is less than Director at that time only Attachment want to be mandatory.

Note: Grade(single Line text) is column from user(sys_user) table.

 

please see attachment for your reference. when I select that user only  at that time only attachment mandatory.

 

Any source code available please share.

 

6 REPLIES 6

Satyapriya
Mega Sage

Hi @Sirri,

  If you call a script include in onsubmit client script, it must be a Synchronous call(Using getXMLWait).Otherwise the Catalog item will be submitted before you get a response from the script include.

  Your code is right but you have to use getXMLWait() instead of using getXML().

Please provide an alert in the client script to check the value of answer.

 Hope this will work as per your need.

 Please Mark it as helpful or solution if it is helpful for you.

Regards,

Satyapriya.

Hi Priya,

 

I have tried with getXMLWait() also but I'm not getting Please can you share the code.