Form Controller Event handler with Script, page is not loading
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 04:05 PM
Hi,
In my Xanadu Scoped Next Experience application I have page with Form and Form Controller. On the Form controller set value event, If I add the script to set the value. Page is not loading in the browser. If I remove the script form is loading as expected. Not sure why when switch to script, page stop loading.
/**
* @Param {params} params
* @Param {api} params.api
* @Param {any} params.event
*/
function evaluateEvent({
api,
event
}) {
try {
var filedName = "short_description";
var value = "test";
var displayValue = "test";
return {
fieldName: filedName,
value: value,
displayValue: displayValue
};
} catch (ex) {
console.log("Error: " + ex);
}
}
adding the above code. looking for some help to fix this issue.
0 REPLIES 0