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 03:28 AM
Why not use a simple catalog ui policy? If the value of your field is 'activate auto-labelling' (check if this is the correct value, because it's not formatted to best practice), then hide 3 options (since it's only affecting 3)
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 03:32 AM
hi @sinu2
I would suggest to use catalog UI policy, UI Policies are often easier to configure for visibility rules.
you can create a UI Policy on the catalog item or variable set.
Use condition: Type of demand is not Other or Type of demand is not None.
Action: Set all other variables to Visible = false.
Add a second UI Policy for the reverse condition to make variables visible.
I hope my answer helps you to resolve your issue, if yes please mark my answer helpful and correct.
thank you
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 04:23 AM
HI Sage
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 03:46 AM
- Why not UI policy instead of client script?
- Are the variables in variable set and trigger variable outside the variable set?