Set
Updates or modifies data within the application or widget context.
Commonly used for :
- Updating record fields programmatically
- Applying calculated values automatically
- Prefilling related form fields
- Modifying UI-bound data elements
- Enforcing standardized field formats
Sample Code :
REQUEST DETAILS
window.onload = function () {
ZFAPPS.extension.init().then(function(App) {
/* Below is an example to set the invoice reference number */
ZFAPPS.set('invoice.reference_number','00000').then(function (data) {
//response Handling
}).catch(function (err) {
//error Handling
});
});
}