Show/Hide state field choices on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 12:25 AM
Hello,
I have a state flow on the form with state 'Open','WIP','review','closed'..
Also i have a state field on the form which have choices 'open','wip','review','closed complete','closed incomplete','closed skipped'..
I need to hide the choices'closed complete','closed incomplete','closed skipped', when the state flow is in 'open' OR 'WIP'
Also I need to show the choices 'closed complete','closed incomplete','closed skipped' only when the state flow is in 'review'.
How do i Acheieve this..Please suggest the best approach and share any sample script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2024 10:51 PM
Hello @aarthi Mohanraj,
You can try with 2 UI policies:
Condition: When the state is one of open or WIP
Ui policy actions:
Closed completed makes it visible as false
Closed incomplete makes it visible as false
Closed skipped makes it visible as false
Condition: When the state is review
Ui policy actions:
Closed completed makes it visible as true
Closed incomplete makes it visible as true
Closed skipped makes it visible as true
Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 02:04 AM
Hello Abbas,
Thanks for your solution. But we can able to add only the field name'state' in UI actions, not the state choices 'Closed completed ','Closed incomplete '..As suggested added the condition Condition: When the state is one of open or WIP and added script below..Its working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 01:30 AM
Hi @aarthi Mohanraj ,
you can simply create a UI Policy for this as suggested by @Abbas_5 above... That must help...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....