I have a page with numerous input fields on it that allows a user to update fields for their profile.
Once done, they click “Update” button and these new values get written to the database. There are also some fields that are not undateable and are populated by conditional logic that changes based, for example, on the current date.
In order to get the “most recent” view when the user views the page, I’d like to programmatically update the fields on page load. Essentially, when the page loads, the “update” button is programmatically “clicked” and the fields are updated.
I’ve tried this w an “on page load” event to Run javascript using toolbox
… wouldn’t all these inputs be part of an update flow that is triggered on how the view is registered? … perhaps page is loaded is an overkill but it seems that this is what you are referring to …
Hmm, what am I missing here, @mfsmillie? Can’t you just use a Page is loaded workflow event and include the necessary actions in that workflow? In other words, there is no need to “programmatically click” the update button… just run the actions you need to run in the Page is loaded event.
Something is probably happening, but maybe the alert is hidden or something. I just tried a page is loaded workflow with a simple alert, and it works exactly as expected.