Passer la navigation

[Closed] Set a checkbox field as "checked by default" in a form

This support ticket is created Il y a 2 years, 4 months. 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.

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 2 years, 4 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#2679171

I would like to display a form that has a checkbox already checked by default. The checkbox is a custom field within a custom post type.

I do *not* want the checkbox to be checked by default when the post is originally created. This is an "edit post type" form. I would need to set the checkbox as "checked by default" just for this form.

Thanks in advance!

#2679315

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

The only place that you can have such feature is inside the fields options in Toolset > Fields which will cause the default checkbox for all scenarios.

For the Edit form I might be able to suggest a jQuery code if you share the link of the edit form and the checkbox that you want to be checked.

Thanks.

The topic ‘[Closed] Set a checkbox field as "checked by default" in a form’ is closed to new replies.