Navigation überspringen

[Gelöst] Embedding Error Messages

This support ticket is created vor 6 Jahren, 8 Monaten. 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)

Dieses Thema enthält 6 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Christian Cox vor 6 Jahren, 8 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#652803

Hi again, sorry for the delay, but how can I implement some error messages to my registratrion form.
Aktually I have 7 required fields but no message pops up.

#653185

Your CRED form must contain this shortcode in order to display validation messages:

[cred_field field='form_messages' value='' class='alert alert-warning']

Let me know if this does not resolve the problem.

#653259

Thanks for answering, its already in the form:

[creduserform class='cred-user-form cred-keep-original']

[cred_field field='form_messages' value='' class='alert alert-warning']

<div class="form-group">
<label>E-Mail</label>
[cred_field field='user_email' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

But ist not working

Here is the Link to the formular: versteckter Link

#653291

Okay can you please copy + paste the entire form code here for me to review?

#653293

Yes Sir

[creduserform class='cred-user-form cred-keep-original']

[cred_field field='form_messages' value='' class='alert alert-warning']

<div class="form-group">
<label>E-Mail</label>
[cred_field field='user_email' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Passwort</label>
[cred_field field='user_pass' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Passwort wiederholen</label>
[cred_field field='user_pass2' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Anrede</label>
[cred_field field='anrede' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Vorname</label>
[cred_field field='first_name' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Name</label>
[cred_field field='last_name' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Firma</label>
[cred_generic_field field='Firma' post='user' type='textfield' class='form-control' urlparam='' output='bootstrap']
{
"required":0,
"validate_format":0,
"default":""
}
[/cred_generic_field]
</div>
<div class="form-group">
<label>Position</label>
[cred_field field='position' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Anschrift</label>
[cred_field field='anschrift' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Wofür wollen Sie unsere Musik verwenden?
</label>
[cred_field field='zweck' post='user' value='' urlparam='' class='form-control' output='bootstrap']
</div>
Der Download und die Verwendung unserer Musik ist für private Zwecke nicht gestattet.

<div class="form-group">
<label>versteckter Link">Datenschutzvereinbarung und versteckter Link">AGB habe ich gelesen und stimme zu
</label>

[cred_generic_field field='datenschutz' type='checkbox' class='' urlparam='']
{
"required":1,
"validate_format":0,
"checked":0,
"default":"ja",
"label":" Ja, ich stimme zu"
}
[/cred_generic_field]

[cred_field field='form_submit' value='Einsenden' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']

[/creduserform]

#653540

Thanks, I don't see anything obviously wrong here. Can you try these troubleshooting steps next?
- Temporarily deactivate all plugins except Types, Views and CRED, then activate a default theme like Twenty Seventeen. If you need to activate a Maintenance Mode plugin during testing, that's fine.
- Test the form again. Use an invalid email address, but fill in all the form fields so that an error message should be triggered.
- If the error message is displayed, this indicates a conflict with your theme or another plugin. Activate your theme first, and test again. Then activate your other plugins one by one and test each time. Let me know what you find out.
- If the error message is not displayed, I'll need to take a closer look. Please provide login credentials in the private reply fields here, and I will take a look in your wp-admin area.

#667953

I see that you have the WP Mail SMTP plugin activated. CRED relies on the wp_mail function of WordPress to send notifications. Most SMTP plugins are ultimately incompatible with CRED email notifications because they override the wp_mail() function in a way that bypasses CRED's functionality. I also see that you have another forms plugin active, Live Forms, which could potentially cause some conflicts here. Were you able to run the tests I recommended without any other plugins and a default theme active?