Attachment mandatory in catalog task when specific user select
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2023 02:04 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2023 06:44 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:04 PM
Hi Priya,
I have tried with getXMLWait() also but I'm not getting Please can you share the code.