A Field's Client Acccessibility property determines its level of access to the Client-Server API and therefore the browser:
- Inaccessible the Field cannot be accessed by the browser.
- Read the Field can be read by the browser but not updated.
- Read/Write the browser has full access to the Field.
The Client Accessibility property does not affect the Verj.io Runtime Environment's ability to manipulate the field.
You can read a Field value from the browser by using $eb.getFieldValue("myField")
, this returns the value of the Field in the appropriate format for the Field's type.
You can modify the value of a Field from the client by using $eb.setFieldValue("myField", 1)
.
You can also pass additional parameters to this function:
- autorefresh instructs the AJAX mechanism to refresh the page with any resultant changes.
- failureCallback a function that will be called if the field cannot be found or written to.