rbf_setChecked on a read-only field

Posted by IramK on 08-Jul-2015 06:36

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

Posted by pvorobie on 08-Jul-2015 11:09

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

Posted by IramK on 09-Jul-2015 04:28

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

Posted by pvorobie on 09-Jul-2015 11:07

Yes, you need to use triggers.

Posted by IramK on 10-Jul-2015 03:22

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.

This thread is closed