Attachment - make attachment mandatory based on variable value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 12:59 AM
Hi All,
I have a catalog item on the portal . There is a reference variable and based on the reference variable the attachment should be mandatory. I am making the attachment mandatory as by using the portal setting . Please help me on this.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:18 AM
Hi @kali ,
you can check the below links for this you have to write onsubmit catalog client script.
Thank you,
Vishakha Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:27 AM
Hi @kali
you can use the below link to write the onsubmit catalog client script and instead of var Requiredcount you can pass your variable .
Thank You!!
Vishakha Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 03:26 AM
Hi @kali ,
You can achieve mentioned requirement using Catalog UI Policy.
Considering reference field as user(sys_user).
Ex. when user is Abel Tutor then make attachment mandatory
Attaching screenshots for reference.
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 12:29 AM
Hi @Rohit99 ,
Thanks for your response ,the solution you proposed is not working .