Form data
Reading & writing form data via functions
There are 4 main functions for getting and setting values:
getValue
getJsonValue
setValue
setJsonValue
All form controls have this function. Example:
Reading and writing via value proxy
Sometimes you might like to use a more natural way of reading and changing values. For that purpose value
property exists on form instance. Under the hood we are using Proxy and calling getValue
and setValue
functions for every get and set, meaning that for every read you will get copy of data (references are not the same).
Example:
You can't reasign value
proeprty itself only nested properties can be read and set.
Wrong usage:
Last updated
Was this helpful?