The DataEngine offers the possibility to trigger a page reload after an inline edit. This can be useful if workflows are triggered after saving a record. For this you have to set Custom JavaScript (JS) in the admin section. This article explains briefly how this works.
You must have the appropriate admin rights to store Custom JS. Navigate to the admin section (see screenshot). There you select JavaScript.
Then you enter the following code snippet:
$(document).on(‘inlineEditSaveEvent’, function (e, module, field) {
if (module === ‘module_name’ && field === ‘module_field’) {
location.reload();
}
});
You need to define the two variables:
- module
- field
In the code snippet we use the generic names “module_name” and “module_field”. You store the corresponding module and field name from your system that you want to apply the code to.
This triggers a page reload after an inline edit of a record.