- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 10:53 PM
Hello everyone,
Good day
I have the requirement to Tigger group approval based on the selection of the value on the look up select box variable.
example:
in the list collector i have 1,2,3,4,5 as the choices. I have the specifically approval for the choice 2.
When i have tried my script it is working for the single choice i.e., if i select the only 2 while filling the form it is triggering the approval. If i select the 1,2,3 as the choices. the approvals are not triggering.
Kindly help me with the script please.
This is the script i have created:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 11:03 PM
Hello @Mainkanta ,
In the IF condition i guess you are checking for a single value.
May be try with this below code where i have used indexOf to search the option which might work for you.
if (val.indexOf('DWPRD')>0)
Hope this helps
Mark the answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 11:03 PM
Hello @Mainkanta ,
In the IF condition i guess you are checking for a single value.
May be try with this below code where i have used indexOf to search the option which might work for you.
if (val.indexOf('DWPRD')>0)
Hope this helps
Mark the answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 11:17 PM
Hello Mohith,
Thanks for the Quick response.
Thanks,
Manikanta