rbf_setChecked on a read-only field - Forum - Rollbase - Progress Community

rbf_setChecked on a read-only field

 Forum

rbf_setChecked on a read-only field

This question is not answered

Hello,

I am trying to update a checkbox value to its checked state when trying to create a new record when the field has been set to read-only in its design page. Can we use rbf_setChecked function to set a checkbox value to its checked state when trying to create a new record? Likewise can we use rbf_setFieldValue function to set a text field when its set to read only? If not, what is the best way to achieve this? Kindly let me know.

Cheers.

IK

All Replies
  • If field is read-only, you cannot set it value on client side. You'll have to update this field on server side.

  • So is there a way I could do this when I am trying to create a new record using a trigger lets say?

  • Yes, you need to use triggers.

  • What kind of trigger do you think will allow me to update the field value of the checkbox before actually creating the record i.e. for a new page? Kindly let me know.

    Cheers.