- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 08:57 AM
Hi,
I have a catalog item where if the user selects the option 'Meditech' they need to attach an document. I have created a catalog client script to require attachment when the variable is selected. However even if an attachment is added, it still prevents users from submitting. Below is the code I am using, the section that is commented out did the same thing. I currently have the Isolate Script field set to False. When it was set to True it would give me an error message.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 09:45 AM - edited 08-01-2023 09:46 AM
While I am not sure exactly what your issue is here, I think it would be much more simple to use an attachment type variable, and hide the normal attachment using Hide Attachment in Portal Settings.
With an attachment type variable, instead of your client script, you can use a UI policy:
- When to apply: Password Reset User Access Type is 'meditech'
- Actions: Attachment variable is mandatory
- Set reverse if false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 09:45 AM - edited 08-01-2023 09:46 AM
While I am not sure exactly what your issue is here, I think it would be much more simple to use an attachment type variable, and hide the normal attachment using Hide Attachment in Portal Settings.
With an attachment type variable, instead of your client script, you can use a UI policy:
- When to apply: Password Reset User Access Type is 'meditech'
- Actions: Attachment variable is mandatory
- Set reverse if false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 11:20 AM
Can you please paste the code here.