Home › Toolset Professional Support › [Closed] Changing CRED form success message dependant on form field
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 1 reply, has 2 voices.
Last updated by Shane 2 years, 4 months ago.
Assisted by: Shane.
Tell us what you are trying to do?
On a Form, I'd like to change the success message when the form is submitted (default: 'Post Saved') based on an hidden field input. The example idea is below:
'form_status' = 0
"Your form has been accepted."
'form_status' = 1
"Your form has been sent to the admin to be reviewed. "
Is there any documentation that you are following?
https://toolset.com/forums/topic/split-hook-into-the-cred-form-success-event/
(I modified this with an onClick on the form to set 'form_status' = 1 but then the field is cleared on submission)
https://toolset.com/forums/topic/customize-forms-redirection-message/
(can't see how this would work on the fly)
The filter 'cred_submit_complete' mentions it can be used to change messages but I haven't been able to put 2+2 together.
Hi Matthew,
Thank you for getting in touch.
Can you let me know how the status field is being changed? Is it changed using some javascript ?
As what we can do is to perform a redirect to the different success pages based on the status. What I mean is that you will need to create 2 pages 1 for the 0 status and another for 1 status.
Please let me know and we can proceed with this.
Thanks,
Shane
The topic ‘[Closed] Changing CRED form success message dependant on form field’ is closed to new replies.