Hello,
I've made a page with Creatio Freedom UI and need to be able to have 1 button on the page that both adds a record and then redirects the user to a specific page. It appears I can only have the button do 1 action or the other (save a record or open a specific page). To do both actions with one button, I instead tried creating a business process for this. It's adding the record fine but I am having trouble getting it to open a specific page afterwards. Opening an edit page and choosing the home page I want the user to be directed to does not work and instead. I think it's because edit pages on a business process are treated like tasks and are not simply a redirect.
Should I use a script element instead to redirect the user to a specific page after the record is added in the business process or is there a more simple way to do this?
Like
This can be done with custom code on the Freedom UI page. You'd need to wire up the button to execute a custom request on the page:
See https://customerfx.com/article/adding-a-button-to-execute-custom-code-o…
Then, in that custom request, you'd need to first save the page:
See https://customerfx.com/article/saving-a-page-before-some-action-on-a-cr…
And then open the other page:
See (for opening an add or edit page): https://customerfx.com/article/opening-an-edit-page-to-add-or-edit-a-re…
Or (if the page isn't a record page): https://customerfx.com/article/navigating-to-a-page-via-code-in-a-creat…
Ryan
Ryan Farley, thank you so much for this detailed, thoughtful reply and all the articles you've written! I was able to get the button to save a record and redirect to the desired page after with custom code.