Get a list of all mandatory fields portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 01:59 AM
Hi All,
I want to get a list of all mandatory fields in the portal.
Does anyone know how to do it?
Thanks in advance 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 02:16 AM
Hello @Snow Tomcal
var arr = g_form.getMissingFields();
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 02:20 AM
I get an error : g_form.getMissingFields is not a function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 02:29 AM
Hello @Snow Tomcal
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
08-15-2023 02:35 AM
Now I get - TypeError: Cannot read property 'getElementById' of null.