asked on November 1, 2016 Show version history

I have a form that based on whether a checkbox is checked or not,  a Single Line textbox within a table should be set to readonly or editable.

 

I have used Jquery to remove the readonly attribute based on checkbox change event but it is still not editable.  

 

I have tried both of these methods neither worked

Method 1:

    $('.cty input').attr('readonly',false);
    $('.cty input').attr('backend-readonly',false);

 

Method 2:
    $('.cty input').removeAttr('readonly');
    $('.cty input').removeAttr('backend-readonly');

 

I cannot just add 2 extra fields and hide them based on the checkbox in the field rules,  since the value is tied to template in the save to repository step.

0 0