Skip Navigation

[Resolved] CRED not working as expected

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user created a Toolset Form, however when they view the form on the frontend, only the shortcodes are showing and no form.

Solution:

This is because the form is missing the opening and closing required tag.

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


[/credform]

What you need to do is to open your form on the backend and add the above shortcodes around your existing form.

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

Last updated by Shane 6 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#948281

I am trying to: Display a form on the front end

Link to a page where the issue can be seen: hidden link (this is just one of all the pages that does this)

I expected to see: a form showing properly ( hidden link )

Instead, I got: It not showing the form properly

Also can you please advise on how to do a drop down that shows all the countries ?

#948435

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

I see the issue but I tried to fix it but it seems that your page is caching the old form. But the issue is that the form is missing these tags.

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

Form information

[/credform]

Thanks,
Shane

#948727

I tried what you suggested. But I can't get it to work... Can you please advise or show me an example of how to resolve the issue?
I checked, there is no caching plugin active either...

also, you did not advise on "Also can you please advise on how to do a drop down that shows all the countries ?" can you please advise?

#949193

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

I added the shortcode that I mentioned to the form and it works on this test page I did here
hidden link

Also dropdown list of which countries?

Please let me know.
Thanks,
Shane

#949229

I see you did it in a post, while we're trying to do it in a page... Is there a reason for that?
also, while your's works. That does not really explain while none of the pages we setup worked?

Can you please help us figure it out?

#949231

Also, I am still unsure of how to address the issue of a dropdown with a list of countries in it?
Can you please let me know how this can be achieved?

#949235

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

Thats because your forms that don't work are missing the opening and closing CRED form tags.
[credform class='cred-form cred-keep-original']

Form information

[/credform]

Adding those tags around your form should cause them to work.

Also for a list of countries in a dropdown you will need to manually create this in our Types plugin.

Thanks,
Shane

#950027

I tried that, but it did not work. Please check the page: hidden link

#950346

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

This is why I say the page must be caching the old code because its not updated. Could you try recreating the page without the page builder and let me know if the issue still remains ?

Thanks,
Shane

#951594

Does not look like that worked either... Please feel free to check hidden link

#952333

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

I dont believe that you are adding the shortcodes to the form.

I've added the shortcodes as per my previous instructions and the form works fine.
hidden link

To say again you need to add the opening and closing cred form shortcodes around your form like this.

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

Form information
  [cred_field field='form_submit' value='Submit' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']

[/credform]

And you also need the submit button to send the form as well.

Thanks,
Shane

#952425

Maybe just have a look at the page again? As soon as I open the page in beaver builder to edit it, the shortcode stops working, the form seems to work still but the additional shortcode your wrapping it with, no longer works...

Also a question, there are forms where the cred had to be split up into several forms, since it has repeater groups in it...
how can we add one submit button for all those forms? Meaning we add 4 shortcodes on the page to display all the fields, but it still only has 1 button to submit?

#953676

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

What you need to do is to edit the actual form itself, not the page that the form is on. The shortcodes are to be added around the form codes on the edit form page.
hidden link

I've already wrapped the form itself with the shortcode thats why it works.

The reason why there is no submit button is because it wasn't added when the form was being built.

To add the submit button use this shortcode.
[cred_field field='form_submit' value='Submit' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']

This needs to be added inside the form as well when you're editing it .

Thanks,
Shane

#955746

Hahaha I can't believe I miss-understood you so badly haha...
can you tell me, like I said, I have 3 or 4 forms on 1 page... If I add the submit button to 1 of the forms (which will be the last one added to the page), will it submit the content from all the forms?
Or is there something else we need to do?

#956547

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

Actually no that wouldn't work because each form requires its own submit button as they are treated as separate form.

Thanks,
Shane