Is there any way to check all mandatory fields on a change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 06:28 AM
Hi, I try to find a way to check if all mandatory fields in the change are filled in.
I try the g-form.getMissingFields(), but it seems that this command only check fields in the form and not in the sections in the form.
Is there any other way to check all mandatory fields in a change, include fields in the sections of the form.
Thanks in advanced,
Patrick
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 06:54 AM
Hi Patrick,
When you want this "check" to occur. If you attempt to save or submit the Change before all the required fields are filled in you should receive an error message letting you know which required fields still need to be filled in.
-Paul
CloudSherpas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 07:22 AM
Hi Paul, Tanks for the reply.
But I want to check it in a script so I can change the status e.g. to "next phase" automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 07:42 AM
Ah ok. I have something similar that used a UI action with a Server Side
and Client Side call. Then set onclick to something
like makeFieldMandatory() or checkFieldMandatory() after that you can set
your condition to check for an empty field and then I would do a script
something to the effect of
g_form.setMandatory('change_plan', false);
g_form.setMandatory('backout_plan', True);
This isn't an exact script but something to the effect of this should get
you to what your after.
On Wed, Jun 24, 2015 at 8:22 AM, Patrick Gosseye <