We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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