Hi!
We have record A, which has an User Event script that creates a button to open record B. We want to fill some fields and trigger fieldChanged when record B is created.
For some reason, when record B is opened from the button press, the record's Client Script is not triggered. Even the pageInit function is not triggered (I have checked with logging).
I am using url.resolveRecord with isEditMode set to true to create the URL that opens the record.
I also observed that changing isEditMode to false didn't have any effect on the created record B. It was still opened in Edit mode.
I will attach a code snippet from the record A User Event Script:
The redirectToUrl is a function in the client script for the record A.
function redirectToUrl(url) { window.location = url; }
The record B itself opens and field in the parameters populates correctly. No errors.
Why is the Client Script not triggering? Is it not supposed to?