Skip Navigation

[Resolved] Can't see add button for categories

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by thibautF 7 years ago.

Assisted by: Luo Yang.

Author
Posts
#591822

I generated a form automaticly.
And when i preview it, can't see add button for new category...
I had add button for "Type de connectique" which is simple line CF where users can add fields... But not for taxonomy

[credform class='cred-form cred-keep-original']

[cred_field field='form_messages' value='' class='alert alert-warning']

<div class="form-group">
<label>Nom Antenne</label>
[cred_field field='post_title' post='_antenne' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Description Antenne</label>
[cred_field field='post_content' post='_antenne' value='' urlparam='' output='bootstrap']
</div>

<div class="form-group">
<label>Marque de l\'antenne</label>
[cred_field field='marque-de-l-antenne' post='_antenne' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Modèle de l\'antenne</label>
[cred_field field='modele-de-l-antenne' post='_antenne' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Type de connectique</label>
[cred_field field='type-de-connectique' post='_antenne' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Spécificités de l\'antenne</label>
[cred_field field='specificites-de-l-antenne' post='_antenne' value='' urlparam='' output='bootstrap']
</div>

<div class="form-group">
<label>URL image</label>
[cred_field field='url-image' post='_antenne' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Visuel antenne</label>
[cred_field field='visuel-antenne' post='_antenne' value='' urlparam='' output='bootstrap']
</div>

<div class="form-group">
<label>Marques des antennes</label>
[cred_field field='marque-de-l-antenne' display='checkbox' output='bootstrap']
[cred_field field='marque-de-l-antenne_add_new' taxonomy='marque-de-l-antenne' type='add_new']
</div>

<div class="form-group">
<label>Types de connectique</label>
[cred_field field='type-de-connectique' display='checkbox' output='bootstrap']
[cred_field field='type-de-connectique_add_new' taxonomy='type-de-connectique' type='add_new']
</div>

<div class="form-group">
<label>Modèles d'antenne</label>
[cred_field field='modele-de-l-antenne' display='checkbox' output='bootstrap']
[cred_field field='modele-de-l-antenne_add_new' taxonomy='modele-de-l-antenne' type='add_new']
</div>

<div class="form-group">[cred_field field='recaptcha' value='' urlparam='' class='form-control' output='bootstrap']</div>
[cred_field field='form_submit' value='Envoi' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']

[/credform]

#591826
Screenshot_20171121-225314.png

I can provide admin access if necessary

#591903

Dear Thibaut,

I assume you are going to add an "Add new" button to the field "Type de connectique".

How do you setup the "Type de connectique"?
Is it a custom field or custom taxonomy?

If it is a custom taxonomy, you should be able to setup the "Add new" button, see it in your own screenshot:
hidden link
There is an "Add new" button in above screenshot

If it is a custom field, then you will need to setup it in admin side, Dashboard-> Toolset-> Custom field, find and edit the the custom field "Type de connectique".

And in the codes you mentioned above, there is a custom field "Type de connectique":

<label>Type de connectique</label>
[cred_field field='type-de-connectique' post='_antenne' value='' urlparam='' class='form-control' output='bootstrap']

There isn't "Add new" button.

And another custom taxonomy:

<label>Types de connectique</label>
[cred_field field='type-de-connectique' display='checkbox' output='bootstrap']
[cred_field field='type-de-connectique_add_new' taxonomy='type-de-connectique' type='add_new']

There is the "Add new" button, it should be able to work.

#592158

Hello and thank you for your answer.

In my custom type, we find "Connector Type" as a custom field AND as a taxonomy.

In the form, we see that we can add another instance for the custom field (as defined in the field).
But I do not have the add button for taxonomy (the last 3 lines of the forms).

Is that clearer ?

#592162
form.jpg

I end up with the same type of problem on another form.

This time I have an add button for the taxonomy, but I have 3 taxonomy ... and a single button ...

I should find 3 buttons right?

#592202
form1.png

Here, you can see what i say on an other form of the site...

#592330

The problem you mentioned above is abnormal, please check these:
1) you are using the latest version of Toolset plugins
2) deactivate other plugins and switch to wordpress default theme, and test again

If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL and CRED form URL, I need to test and debug it in my localhost, thanks

#592379

The database dump file is not valid, I tried it in my localhost, login with user "asitea_wowiki-8482", but can not access the wordpress admin side, please follow our document to provide a copy of your website:
https://toolset.com/faq/provide-supporters-copy-site/
And we don't support/contact user within FB Messenger.

#592424

I tried the database dump file you provided, same problem, when I try to open wordpress dashboard, I see below error:
you are not allowed to access this page.

So, it is not possible to debug this problem with the database dump file, please follow our document to setup the duplicator package
https://toolset.com/faq/provide-supporters-copy-site/

and put it into your own google drive, then update this thread:

#592529

I use duplicator and put files in the google Drive folder...

#592677

Thanks for the details, I am downloading the files, trying to duplicate same problem and debug it in my localhost, will feedback if there is anything found

#592679
cred3.JPG

I can duplicate same problem in my localhost, the problem occurs when you are using same custom field slug as custom taxonomy slug, I suggest you setup different slug for each field and taxonomy, for example, you can try this:
Dashboard-> Toolset-> Post fields, edit field group "Groupe de champs pour Antennes"
Change the field slug to something else, like this:
From "marque-de-l-antenne" to "marque-de-l-antenne-cf"
From :modele-de-l-antenne" to "modele-de-l-antenne-cf"
...

Then regenerate your CRED form, and test again, it works fine in my localhost, see screenshot cred3.JPG

#592829

Great, I'm very happy! Thank you very much, I would do the necessary.

I allow myself to make an extension to this ticket, because I would like on these forms, I can put the choice of the category in a drop-down list and not in the form of a checkbox (it can only see one choice for these taxonimie), while leaving the possibility to add it with the add button ...

Is it possible ?

#593131

Thx