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
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.
Answers
After you call
.mode('create')
, you could then make calls todisable()
orfield().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
Thanx very much Allan, works perfectly