could not able to make hide variables in variableset in order guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 03:01 AM
I have one order guide in that i have one varibale set when i change a filed option called "Type of demand" then other varibales should be hide on the form if "Type of demand" is "other or none " then only all other variables should be visible. For this i have written a onchnage client script but not working.. even i am hiding the other variables still showing on the form.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
if (newValue == 'Activate Auto-labelling') {
alert("hello" + newValue);
g_form.setVisible('AXA_GS_DLP_0005_type_of_demand', true);
g_form.setVisible('AXA_GS_DLP_0005_subject', true);
g_form.setVisible('AXA_GS_DLP_0005_deadline', false);
g_form.setVisible('AXA_GS_DLP_0005_requester_email', false);
g_form.setVisible('AXA_GS_DLP_0005_entity_name', false);
g_form.setVisible('AXA_GS_DLP_0005_entity_single_point_of_contact_for_this_project', false);
} else {
alert("elase" + newValue);
g_form.setVisible('AXA_GS_DLP_0005_type_of_demand', true);
g_form.setVisible('AXA_GS_DLP_0005_subject', true);
g_form.setVisible('AXA_GS_DLP_0005_deadline', true);
g_form.setVisible('AXA_GS_DLP_0005_requester_email', true);
g_form.setVisible('AXA_GS_DLP_0005_entity_name', true);
g_form.setVisible('AXA_GS_DLP_0005_entity_single_point_of_contact_for_this_project', true);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 04:05 AM - edited ‎05-12-2025 04:28 AM
Hi sumanth
All variables are inside variable set including trigger variable only one variable is outside variable set.. SO do i need to keep ui policy on variableset or applies to catalog item?
2. do we need to make 2 ui policies to get achieve this? ot single ui policiy will cover?
3. And what ever the variables that i am trying to hide are mandatory variables on dictionary level.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2025 04:16 AM
Then you have to make them non mandatory at dictionary level.
And i guess two ui policies without reverse if false checked will serve your case.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2025 06:19 AM
You can't hide mandatory variables. That will cause issues. If a variable doesn't have to be mandatory at all times, don't make it mandatory on record level, but use a ui policy.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark