Skip Navigation

[Resolved] CRED permissions for non-types fields?

This support ticket is created 4 years, 10 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.

Our next available supporter will start replying to tickets in about 8.51 hours from now. Thank you for your understanding.

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 2 replies, has 2 voices.

Last updated by charleneK 4 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1474111

Is there anyway to grant access for a CRED form without granting access to a whole post type for non toolset-types. Specifically, I'm trying to allow a person as "guest" to update a specific Woocommerce order field, without signing in, and without granting access to the whole content type.

#1474799

Nigel
Supporter

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

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

You can use Access and not bring the orders post type under Access control but still allow guest access to a Form to edit orders.

You can see in the screenshot I have used the Access settings to give permission for guest users to edit posts with a form "Edit Orders".

Is the custom field a field added using Types? If so there should be no problem adding it to the Form.

If you are trying to update a built-in Orders custom field then you will need to add a single line generic field to your form which has the required slug (the key of the custom field in wp_postmeta), and then you will need to switch to Expert mode so that you can update the JSON options for that field so that it includes a persist option, e.g.

[cred_generic_field type='textfield' field='is_vat_exempt']
{
"required":0,
"default":"",
"persist":1
}
[/cred_generic_field]
#1485779

great+ thanks++ exactly what I needed. My issue is resolved now. Thank you!