Skip Navigation

[Resolved] Save Custom Javascript Code field for Product and Display Raw Value

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

Problem:

Display raw value of custom field.

Solution:

In the version of Types plugin 3.0.2, we have fixed a custom field raw output mode problem, please try to upgrade Types plugin to the latest version, and test again.

Relevant Documentation:

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

Last updated by aprilA 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#921373
Screen Shot 2018-07-05 at 12.20.39 PM.png
Screen Shot 2018-07-05 at 12.21.04 PM.png
Screen Shot 2018-07-05 at 12.21.46 PM.png

Currently, I have a list of products that each has a separate javascript code that needs to be called to load custom labels from a 3rd party site. To do this I am creating a product template with Toolset and Divi.

My original plan was for my javascript code to be saved as a custom field and then load that field with toolset into a text or code module within Divi. Once that code was placed within the field I could then grab that value and run my custom script with the loaded values. The issue I come across is once I try to load the custom field into a text or code module the append <div> gets converted into code and not the raw text value. Is there anyway around this?

Maybe I am going about this the wrong way and would consider looking at other options.

#921571

Hello,

In the latest version of Types plugin 3.0.2, we have fixed a custom field raw output mode problem.
Please check these in your website:
1) You are using the latest version of Types plugin 3.0.2, you can download it here:
https://toolset.com/account/downloads/

2) Deactivate other plugins and switch to wordpress default theme 2017, and test again

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

#924805

Was able to resolve my issue.