Skip Navigation

[Resolved] cpt required field not available for edit form

This support ticket is created 2 years, 5 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
- 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 6 replies, has 2 voices.

Last updated by richardM-10 2 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2420425

Tell us what you are trying to do?

created cpt & its create form. form included required fields.

when creating edit form the cpt "required" fields do not appear to be available for edit in the form.

intent is for fields to be required during create by author, and available later for edit by author. but the fields must not be empty.

am i missing something or is this the intended condition?

site is currently in dev and behind authentication. this question is intended to solicit info as to whether this condition is intended, considered normal, or am i missing something.

Thanks.

#2420883

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Richard,

Thank you for getting in touch.

Are you saying that the fields are required when you're creating the post, however when you're using the edit form to edit that said post the required fields are no longer required by the form ? Meaning the field can be submitted empty?

Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

Please where applicable please provide me with a link to an example page where I can see the issue.

I've enabled the private fields for your next response.

Thanks,
Shane

#2421081

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Richard,

Thank you for the additional details. It's a bit clearer for me.

No this is actually the correct usage for the required attribute. If you don't want the field to be submitted empty then its reasonable to have that field as required to ensure that is filled out.

Thanks,
Shane

#2421085

Hi Shane,

But, to be clear, if i set a field as required should i expect to be able to include that field in an edit form. So, if a required field was populated using a Toolset Post Form for "create", can that field be edited later in a Toolset Post Form created as an "edit" form? The image I sent you seems to indicate it cannot based on the padlocks.

Thanks,
Richard

#2421125

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Richard,

But, to be clear, if i set a field as required should i expect to be able to include that field in an edit form. So, if a required field was populated using a Toolset Post Form for "create", can that field be edited later in a Toolset Post Form created as an "edit" form? The image I sent you seems to indicate it cannot based on the padlocks.

That is correct. Once the field is required it will be automatically included on the edit form. What the padlock means is that this field is required and cannot be removed from the form.

Thanks,
Shane

#2421167

Thanks Shane.

#2421169

My issue is resolved now. Thank you!