This discussion is archived
3 Replies Latest reply: Dec 14, 2012 12:24 AM by 714270 RSS

TEXT FIELD UNEDITABLE

973552 Newbie
Currently Being Moderated
HI

i have a question for you all can you kindly help me. How to make a text field uneditable?

Thanks
pritham
  • 1. Re: TEXT FIELD UNEDITABLE
    603257 Journeyer
    Currently Being Moderated
    Edit the item, go to the "read only" section and select "always".
  • 2. Re: TEXT FIELD UNEDITABLE
    973552 Newbie
    Currently Being Moderated
    Thanks for you reply. what do we need to give for Read Only Element Table Cell(s) Attributes after we set read-only to always
  • 3. Re: TEXT FIELD UNEDITABLE
    714270 Pro
    Currently Being Moderated
    970549 wrote:
    what do we need to give for Read Only Element Table Cell(s) Attributes after we set read-only to always
    You do not need to specify anything there.

    Just FYI, the other option to set the field as readonly is to specify the following in the "HTML Form Element Attributes" field:
    readonly="readonly";
    If you wish to disable the page item, you can write the following under the "Execute when page loads":
    $('#<your-page-item-name-here>').attr('disabled',true);

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points