Skip Navigation

[Resolved] Post Form – HTML Content Element Not Working

This support ticket is created 2 years, 9 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 1.66 hours from now. Thank you for your understanding.

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

Last updated by chrisO-12 2 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2293437
Form - HTML content not working.jpg

Tell us what you are trying to do?
I have added HTML Content Elements to two different post forms. The HTML Elements are to add a CSS Class that creates a scroll box for a long list of categories that are presented as checkboxes.

The attached image contains the Post Form, webpage output, and HTML from form editor in Expert Mode is show for each.

The scroll-box CSS works properly in the Post Form "Add Established Business Listing". These images are highlighted with red boxes.

The scroll-box CSS does not work in the Post Form "Add Broker Profile". These images are highlighted with blue boxes. The category list is displayed as a long single column list of checkboxes (50 items).

As you will notice, the I used bootstrap feature to put some of the form fields in the same row on the Add Broker Profile form. I did not do this for the Add Established Business Listing form. Other than this, both forms are similar.

Why does the HTML not work in the Add Broker Profile form? I notice the <div class="scroll-box"> is closed </div> almost directly after opened.

I am not a programmer, so it is much easier to use the Visual Form editor. If using the Expert mode, changes are lost if switching back to the Visual Editor. This is not a very user friendly feature (losing the changes).

How do I make the HTML work properly in both forms?

Thank you.

What is the link to your site?
under development

#2293957

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

As I understand, your issue is when you switch to the expert mode, you see the Div is automatically closed - right? If yes, what if you try to remove the closing div and then save the form and check. Do you see the expected results?

#2294101

Hi Minesh,
Thanks for the reply. The HTML Content Element added to the Visual editor does not work. I only show the HTML with the Expert mode editor to show what the problem is. It looks like a closing div is added in the wrong place. I could remove the closing div, but it should have never been there in the first place. It seems that the HTML Content Element does not work properly in this case when the bootstrap feature is used to put fields in the same row.

I never want to use the Expert Mode Editor, as it is not user friendly for someone like me that is not proficient with HTML and programming.

Why does the HTML content element not work in the Visual Editor?

#2294111

Minesh
Supporter

Languages: English (English )

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

I got your concern but with such customization requirement, at some point you will have to use the expert mode.

Can you please share problem URL and admin access details and tell me what you want to see working exactly. I see you shared with your initial post that you have one form where you see it working and with the current form you are having issues.

Can you please share both working and non working example links and let me see if I can offer you any workaround.

*** 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.

#2294257

Minesh
Supporter

Languages: English (English )

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

Otherwise, all changes are lost if I switch back to Visual mode.
==>
If you switch to visual mode, the changes you have done with expert mode will be gone and that is how it works and its expected results.

As you can see it now I've adjusted the code within the expert mode and I can see it working. You can check the form:
- hidden link

And on front end I can see it working.
- hidden link

So, there is no other solution I've to offer you at the moment other than using the expert mode for such customization.

#2294265

Thank you for your help.

I understand the limitation. However, a suggestion for Toolset is to 1) either have the HTML content fields work with bootstrap, or 2) fix it so that code entered in Expert mode is not lost when switching back to Visual mode.

The code gets complex for some of us that are not programmers, so best to use the Visual editor when at all possible.

#2294271

Minesh
Supporter

Languages: English (English )

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

Thank you for your valuable input. You can always file a new feature request using the following link and our product manager will be happy to review it:
- https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#2294285

Minesh,

Can Gravity forms be used to both create and edit custom post types that are created with Toolset?

If so, could you point me to a resource that shows how to set this up?

Thank you!

#2294961

Minesh
Supporter

Languages: English (English )

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

We do not have any official integration with Gravity forms and there is possibility that how Toolset and Gravity form stores custom field value to database will be vary for many field types. For instance, Toolset stores checkboxes field value as serialize array.

If you want to fetch the custom field value and load it for your Gravity forms for plain fields, here are few tickets that you should review:
- https://toolset.com/forums/topic/getting-field-values-from-custom-post-type-into-gravity-forms/
- https://toolset.com/forums/topic/gravity-form-and-toolset/

In addition to that, please kindly open a new ticker with every new question you may have. This will help other users searching on the forum as well as help us to write correct problem resolution summery for the original issue reported with the current ticket. Thank you for understanding.

#2295899

My issue is resolved now. Thank you!

Thanks Minesh. Would be nice for Toolset consider integration with Gravity Forms, due to it's wide use and user friendly interface for form building.