Skip Navigation

[Resolved] Set a field value and hide it for user

This support ticket is created 7 years 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 7 years ago.

Assisted by: Nigel.

Author
Posts
#596278

Tell us what you are trying to do?
I have custom page that has childposts. Parent posts are events and subordinates are participants. I have made a cred form where participants will sign up for an event. I do not want them to be able to choose events among the eventual documents I have. I want to decide what an event that I intend to get participants to. Participants should not be able to select events.
Can I set a parent post in a cred form without showing in the cred form?

Is there any documentation that you are following?
Cred documentaion

Is there a similar example that we can see?

What is the link to your site?
hidden link

at the bottom of the form "Välj event du anmäler dig till" (Select event you sign up for)

#596303

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

You can only hide the field with CSS, it needs to be included on the form.

If you were to omit it you would need to use the CRED API, probably the cred_save_data hook, to update the database yourself when the form was submitted with the parent id field, although the form wouldn't include the parent id because you had removed it.