Skip Navigation

[Resolved] Include custom fields into toolset forms from other plugin

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Minesh 6 months, 3 weeks ago.

Assisted by: Minesh.

Author
Posts
#2702484

Hi,
I have another plugin that created it's custom fields and i want to use them in toolset's post form.

More explanation: My post form is allowing users to upload their own content. However I need to allow them to fill/choose custom fields that the other plugin created.

#2702488

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Please check the following Doc that should help you to know how you can add such third-party plugins custom fields to forms:
- https://toolset.com/course-lesson/letting-toolset-edit-custom-fields-created-by-other-plugins/

Please also keep in mind the limitations:
- https://toolset.com/course-lesson/letting-toolset-edit-custom-fields-created-by-other-plugins/#limitations-on-controlling-third-party-custom-fields

#2702789

Hi,
I did look that tutorial up, but the fields are still not showing in my form/custom fields.

Could that be, because the custom post type was created by the other plugin and not toolset? I can put the other custom fields to toolset searches, but they are missing in forms.

#2702791

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please tell me - what are the fields you want to add to the form and and in what format those fields are stored in database and send me problem URL of your form where I can see you form on frontend as well as send me admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2702842

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - what you should do to workaround this is - you will have to add Generic select field.

You should configure the generic field value same as you configured with the "city" field:
- hidden link

More info:
- https://toolset.com/course-lesson/adding-generic-fields-to-forms/

I hope that way you will be able to see the city field on the form of post type "post".

#2703023

Hi, I did many tests, but no luck so far.
Not to mention that the value/labels of the fields do not work with Cyrillic and they became symbols.

#2703024

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Have you added the generic select field to your form? If yes - Can you please tell me where and how exactly you added it and send me URL of that form.

#2703035
4.PNG
3.PNG
2.PNG
1.PNG

Hi,
The url - hidden link
The field is city and i've duplicated two of the Cyrillic rows, that like stated earlier, turned into symbols now.
The search includes city field, but even if i select options from that field, the new post has blank city field.

#2703063

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

To your form:
- hidden link

I've added the generic field with attribute: "persist":1,

[cred_generic_field type='select' field='city']
{
"required":1,
"persist":1,
"default":["Благоевград"],
"options":[{"value":"Благоевград","label":"Благоевград"},{"value":"Плевен","label":"Плевен"}]
}
[/cred_generic_field]

That will help to save the custom field.

I've created the following post using the form:
- hidden link

I can see the "city" filed is saved successfully.

#2703171

Thank you Minesh!