How do I make fields mandatory when User belongs to INDIA country
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 01:49 AM
I alredy did that but using script include how can achieve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 02:22 AM - edited ‎02-08-2024 02:23 AM
We cant make any fields mandatory using script include...Either we have to use UI policy or Client Script for making fields mandatory if its not mandatory from the dictionary level.
If you are trying to do some complex validation before making fields mandatory, then we can call a GlideAjax Script Include in Client Script . And with the value returning from script include we can set the fields mandatory using g_form.setMandatory('fieldname',true); in client script.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 04:13 AM
Have you made the script include to get the requested for location ? If yes, that was not required. This could have been done via UI Policy (recommended) or via Catalog Client Script.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.