Read-only field text

When a field is read-only, it disappears during editing. How to make them appear but that it is not editable.
Thank you very much

Comments

  • Hi DungNH_1234,
    You are right unless you control this in Javascript(Edit.js) as below -

    container.find('[name="FIELD_NAME"]').prop("readonly", true);
    container.find('[name="FIELD_NAME"]').parent().css('pointer-events', 'none');
    container.find('[name="FIELD_NAME"]').css('background-color' , '#DEDEDE');

    Thanks
    Vivek
  • @vivek85
    Thank you for reply.
    I fixed it
    I use code
    jQuery('#id').attr("readonly",true);
  • Good , Thanks.
Sign In or Register to comment.