Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Client script not working DEV vs PROD

Jagadish Sanadi
Kilo Sage

I have below code which is working fine in DEV but not in PROD. Please let me know how can I get this resolved.

 

Thanks in Advacne

 

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

 

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

 

        return;

 

    }

 

var maxCharacters = 450;

 

var fieldValue = g_form.getValue('executive_summary');

 

   

 

    if (fieldValue.length > maxCharacters) {

 

g_form.setValue('executive_summary', fieldValue.substring(0, maxCharacters));

 

         alert('Maximum character limit reached. Field has been truncated to ' + maxCharacters + ' characters.');

 

    }

 

}

1 ACCEPTED SOLUTION

Jagadish Sanadi
Kilo Sage

Found issue why it is was not working.

 

But thank you Jaspal and Ankur for your time

View solution in original post

5 REPLIES 5

Jagadish Sanadi
Kilo Sage

Found issue why it is was not working.

 

But thank you Jaspal and Ankur for your time