Forum Discussion
EvanMartinez
4 years agoModerator
Hi Devin,
In our Code Page Sample App we do have a code page example that fires off a button that takes users to a PromptAndRefresh code page. On the code page it prompts for user input, edits the record with user input, and refreshes the initial page. For the example, the API call is defined in the URL and passed through to the code page and waits for user input prior to completing the API call.
I believe something similar could be done with your prompt to send an email by having a field hidden from the user that asks for a confirmation of something like YES in a text field or checking a checkbox and saving. They would click the button, popup into the code page to put in whatever prompt you would like to confirm, and then hit save. That would then trigger the notification on the back end via that API before refreshing the page where they started. It might take a little tinkering in code pages but should give you a very similar flow.
------------------------------
Evan Martinez
------------------------------
In our Code Page Sample App we do have a code page example that fires off a button that takes users to a PromptAndRefresh code page. On the code page it prompts for user input, edits the record with user input, and refreshes the initial page. For the example, the API call is defined in the URL and passed through to the code page and waits for user input prior to completing the API call.
I believe something similar could be done with your prompt to send an email by having a field hidden from the user that asks for a confirmation of something like YES in a text field or checking a checkbox and saving. They would click the button, popup into the code page to put in whatever prompt you would like to confirm, and then hit save. That would then trigger the notification on the back end via that API before refreshing the page where they started. It might take a little tinkering in code pages but should give you a very similar flow.
------------------------------
Evan Martinez
------------------------------
- DevinJackson4 years agoQrew Member
This is a big help!
Great resource, and gives me a handful of ideas to solve the issue. Appreciate it!
Best,
------------------------------
Devin Jackson
------------------------------