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.
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.