Skip Navigation

[Resolved] Loading custom CSS and Javascript for Form type is Edit existing content

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

Problem:

How can I load custom CSS and Javascript for Form type is Edit existing content.

Solution:

I suggest you setup the custom CSS and Javascript for each Toolset form, see our document.

Relevant Documentation:

https://toolset.com/documentation/user-guides/styling-cred-forms/#custom-css-and-javascript

This support ticket is created 5 years, 11 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 – 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)

This topic contains 7 replies, has 2 voices.

Last updated by kelvinL-2 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1231248

Dear Sir/Madam,

How can I load custom CSS and Javascript for Form type is Edit existing content, there is no page-id I can check and use the wp_enqueue_script() or wp_enqueue_style() to determine whether the page is loading the form

#1231252

Sorry, as the supporter could not help, so I want to start a live chat to get support from other supporter but it converted to the ticket after a timeout.

#1231297

Hello,

There isn't such a built-in feature within Toolset form plugin:
load custom CSS and Javascript for Form type is Edit existing content

You can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.

Currently, I suggest you setup the custom CSS and Javascript for each Toolset form, see our document:
https://toolset.com/documentation/user-guides/styling-cred-forms/#custom-css-and-javascript

#1231301

Dear Luo Yang,

Yes, I know Toolset form can setup the custom CSS and Javascript, we can use @import to load external CSS, how about Javascript? Any idea?

Best regards,

Kelvin.

#1231307

I assume you are going to load JS files in Toolset form, you can put the HTML codes into form content directly, for example:

<script type='text/javascript' src='<em><u>hidden link</u></em>;
#1231641

Dear Luo Yang,

Yes, this is a clever solution.

#1231943

Is this problem resolved, feel free to create new thread if there is other problems. thanks

#1231974

My issue is resolved now. Thank you!