View controls are designed to present data from linked fields without altering it.
They are commonly used for querying data, retrieving specific records or fetching states based on defined criteria.
It is crucial to understand that modifications made to view controls are not saved to the database; they are strictly read-only.
To apply changes to the data, it is recommended to utilize edit controls instead.
Certain view controls may provide methods for setting values. This functionality proves beneficial when you need to adjust a value within a view control solely for display purposes (e.g., obscuring an email address).
Note
For the controls listed below, there isn't a separate view control.
Please use the corresponding edit control's API, which is designed to function on both view and edit pages:
Please be aware that while these methods allow modifications to what a user sees, the original value remains accessible within the code.
Example
// Get the value of a mail view control constemailViewCtrl = ix.api.dom.getControl("<ELEMENT-GUID>"); emailViewCtrl.getValue(); // Returns: john.doe@mail.com
// Modify the email value locally for display purposes emailViewCtrl.setValue("jo*****@mail.com");
View controls
View controls are designed to present data from linked fields without altering it. They are commonly used for querying data, retrieving specific records or fetching states based on defined criteria.
It is crucial to understand that modifications made to view controls are not saved to the database; they are strictly read-only. To apply changes to the data, it is recommended to utilize edit controls instead.
Certain view controls may provide methods for setting values. This functionality proves beneficial when you need to adjust a value within a view control solely for display purposes (e.g., obscuring an email address).
Note
For the controls listed below, there isn't a separate view control. Please use the corresponding edit control's API, which is designed to function on both view and edit pages:
Common:
Lists:
Important
Please be aware that while these methods allow modifications to what a user sees, the original value remains accessible within the code.
Example