Issue with the OnSubmit client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 06:34 AM
Hi All,
I have the below OnSubmit client script written for making attachments as mandatory
Script ::
How can I fix this issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 06:47 AM
Please take a look at the link below.
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 06:58 AM
Hi @dgarad - I have also used this.document.getelementsbyName in the same way as mentioned in the link to the article but its still not working .
How can I fix it ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 06:54 AM
@Pooja Khatri you have written this script on catalog client script or client script ? I am assuming this is catalog client script, can you confirm , if you have unchecked the "Applies on Requested Items" checkbox ? this way catalog client script wont be trigger on RITM .
Thanks,
Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 07:02 AM
Hi @Harsh Vardhan - this is a catalog client script , the checkbox of Applies on Requested Items is already unchecked but still it is giving me the error on the RITM end .
How can I fix it ?