Using the Duplicate button but would like some fields made read only

Using the Duplicate button but would like some fields made read only

kkutikkuti Posts: 13Questions: 5Answers: 0

Hello, I am using the duplicate button which works perfectly as is, I would like some fields made readonly when the button is triggered. How can I do this please

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    After you call .mode('create'), you could then make calls to disable() or field().disable() to disable the fields you don't want the user to be able to write to.

    Remember to then re-enable them once the submission is complete, or possibly in open for future edits.

    Allan

  • kkutikkuti Posts: 13Questions: 5Answers: 0

    Thanx very much Allan, works perfectly :) :)

Sign In or Register to comment.