Skip Navigation

[Resolved] Cred form submissions and Notifications

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by leilaG 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#627711

Form submission
1. How to change Rich text editor (WYSIWYG) to a plain text editor
2. How to make taxonomy tick box fields required fields, I have tried - required="true"

Form Notifications
1. How to include custom generic fields that were added to the form in the notification email
2. How to set the Sender email to the email of an custom generic email field

#628054

Hi, our support policy is to address one question per ticket. This helps us keep the forums organized, and helps other Users find the answers to similar questions. In the future, please open separate tickets for each question. I will offer some general answers here, and we can follow up with more specific questions in separate tickets.

1. How to change Rich text editor (WYSIWYG) to a plain text editor
There is no way to change the main post body input to restrict WYSIWYG capabilities, but you could remove the post body field and replace it with a multiline custom field. No WYSIWYG features are included in a multiline custom field.

2. How to make taxonomy tick box fields required fields, I have tried - required="true"
There's not a way to do this from wp-admin - it requires custom code using the cred_form_validate API. We have documentation for that API here:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate
Here's another ticket with some sample code:
https://toolset.com/forums/topic/required-field-for-taxonomy-needed/#post-296267
If you have specific questions about this process, feel free to open new tickets so we can discuss in detail.

1. How to include custom generic fields that were added to the form in the notification email
You can use custom placeholders in a notification email to access generic field contents. We have more information about that with some examples here: https://toolset.com/documentation/user-guides/how-to-use-custom-placeholders-in-cred-notifications/
If you have specific questions about this process, feel free to open new tickets so we can discuss in detail.

2. How to set the Sender email to the email of an custom generic email field
It's similar to the process described here: https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/#send-email-notification-to-a-user-specified-in-a-generic-field
Add "persist":1 to the generic field configuration object like this:

[cred_generic_field field='genericmail' type='email' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":"",
"persist":1
}
[/cred_generic_field]
You should then be able to find the generic field listed in the email source fields. You may have to click the "refresh" icon next to the input area to update the options shown here. If you are still unable to find the generic email field listed, submit the form once on the front-end with some value set in the genericmail field. You can use the "default" configuration to do that if necessary. Then refresh the CRED form editor page in wp-admin and try again.

#652494

Thank you for the response, I have raised separate tickets as requested.