Sauter la navigation

[Résolu] Problems with error message for checkbox

This support ticket is created Il y a 4 années et 9 mois. 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
- 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)

Marqué : 

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par BernhardL4165 Il y a 4 années et 9 mois.

Assisté par: Shane.

Auteur
Publications
#1647711
error_message.png

I have marked a checkbox as required. When the checkbox isn't checked, the error message looks like this (please look image).

This ist the code of my form. The Website is made with Divi:

Link to site: lien caché

What can I do?

[credform]
<div class="et_pb_contact">

<div class="form-group">
<label>Bezeichnung (Pflichtfeld)</label>
[cred_field field='post_title' class='et_pb_contact_message input' output='bootstrap' class='wpcf7-form-control wpcf7-text']
</div>
<div class="form-group">
<label>Beschreibung (Pflichtfeld)</label>]
[cred_generic_field field='post_content' type='textarea' class='et_pb_contact_message input' class='wpcf7-form-control wpcf7-text']
{
"required":1,
"validate_format":0,
"default":""
}
[/cred_generic_field]

<div class="form-group">
<label>Standort (Pflichtfeld, für Kartendarstellung)</label><span>Tipp: Eine nahe gelegene Adresse eintragen. Danach den Standort auf der Karte exakt festlegen.</span>
[cred_field field='standort_aktivitaet' force_type='field' class='form-control' output='bootstrap' class='wpcf7-form-control wpcf7-text standort']
</div>

<div class="form-group">
<label>Bild der Aktivität (Pflichtfeld)</label>
[cred_field field="_featured_image" force_type='field' class="form-control" output="bootstrap" class='wpcf7-form-control wpcf7-text' required='true']
</div>

<div class="form-group">
<label>Ich habe die Datenschutzerklärung (s.u.) zur Kenntnis genommen. (Pflichtfeld)</label></div>
<div>[cred_field field="datenschutz_aktivitaet" force_type="field" class="form-check-input" output="bootstrap"]</div>
<div>[cred_field field='form_submit' value='Aktivität eintragen' urlparam='form_submitted' class="et_pb_contact_submit et_pb_button"]</div>

</div>
[/credform]

#1648071

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Bernhard,

Thank you for getting in touch.

The error could be appearing over the field because of the customizations that were added to the form itself.

Try adding this css to the form to allow for you to adjust the margin of error message.

.wpt-form-error {
  margin-right: 35px;
}

Please let me know if this helps.

Thanks,
Shane

#1648491

My issue is resolved now. Thank you!