I have a client who wants to have a unique code sent to a recipient at random or may choose from a list of codes.
The codes can be coming from another form with new entries that can be added using a user form.
However, since codes are unique and each must be used in random until all codes are used up, for example, 1-100 unique codes. But after all they are used up, it will loop back to number 1 and will be assigned again once there are new customers.
This is similar to having an agent code that every customer inquiry will be assigned to but they are not visible to user form. Yet, they will be sent to the agent automatically or their email address.
You can generate random unique IDs with our GP Unique ID Perk and send the generated unique ID to the recipient via the notification email. Please check out the documentation and let us know if you have any questions.
It is also possible to add a button to the body of the message for confirmation. Let say I am sending the order confirmation to customer and I want to provide a cancel or reorder button?
From how you describe your setup above, you would probably be able to:
Change the confirmation type to Text with a ‘Thank you very much’ message.
Disable the default notification that follows form submission
Add a workflow with an approval step assigned to the user / email field. Within the approval message use the {workflow_approval_link: text=“Re-Order”} or {workflow_reject_link: text=“Cancel this order”}
Use conditional logic on subsequent steps based on if the user approved or rejected. Potentially with the Form Connector extension to create a new entry you could automate the re-order portion of that as well.