formData.id
(FintechOS Studio 20.1.1 and later)
Returns the ID of the record currently displayed on the form.
NOTE
formData.id will return a value only if the form is in edit mode. An insert form becomes an edit form after the record is inserted (after clicking the Save and Reload button).
formData.id will return a value only if the form is in edit mode. An insert form becomes an edit form after the record is inserted (after clicking the Save and Reload button).
Return Value
Returns a string containing the current record's ID.
Examples
In this example, we log in the browser console the name and surename attributes of the currently displayed record of the customers entity.
Copy
ebs.getById('customers', formData.id, function(e) {
console.log(e.Records[0].name);
console.log(e.Records[0].surname);
});