Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

could not able to make hide variables in variableset in order guide.

sinu2
Tera Expert

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);
 
 
    }
}

 

7 REPLIES 7

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.

@sinu2 

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

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