Client script not working on mobile version

Kavirao
Mega Contributor

Hi,

This script is executing only on desktop version and not triggering on mobile version, u_impact_1 and u_impact_12 have been hidden by another Client script, but these values changes to true on desktop version(xml) after the script execute. Do you have any suggestion? Thank you

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {

    if (isLoading || newValue === '') {

        return;

    }

 

    var assessment = g_form.getValue('u_assessment’) == '1'

                                        || g_form.getValue('u_assessment’) == '999';

 

    g_form.setValue('u_impact_1’, assessment);

    g_form.setValue('u_impact_12’, assessment);

}

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Kavirao 

Hope you select All

 

AGLearnNGrow_0-1737388647497.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************