how to check mandatory field using script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 03:55 AM
How can i check if the field is mandatory in client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2024 08:53 AM
not working.
I am selecting mandatory field but still it is showing false.
kindly help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2024 04:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2023 02:28 AM
Hello @Akki1
if you are looking for portal :-
document.getElementById(form).querySelectorAll("[required]")

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2023 03:46 AM - edited ‎10-11-2023 03:47 AM
I have exactly the same question but in the backend.
I was building a script to verify that. Where it looks up firstly for the variables that are mandatory (it means going to the variables table and variable set table and lookup for the item, and then retrieve all the variables). Then, do a lookup for the mandatory field equals to true or lookup for the catalog client script or catalog UI policy table and lookup in the script field for a mandatory instruction and finally lookup into the ui policy actions.
Is there a way of doing this easily? I'm in the backend. It is related with an integration.