Skip Navigation

[Resolved] Cred Form display text img src not saving

This support ticket is created 5 years, 2 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by robS-9 5 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1353273

I am trying to: I have a cred from with radio button choices of images to choose from. Before updates, I was able to save images using <img src=""> tag on display text area and showed fine. After some time, the image was displaying <img src="\http:// "> to show broken images and after cred from update, <img src=""> tag is not saving anymore. The input fields for radio button on "Display text" only seem to save static text. I even tried manual generic radio fields with sample img tags but nothing shows. The value works and form submission and publish works just showing the images on front end when you are filling out the form.

Link to a page where the issue can be seen: frontend - hidden link , backend - hidden link

I expected to see: Image tag save on cred form on post field area under radio display text option so it displays on front end

Instead, I got: no image tag saving after clicking save form or save field group.

#1353887

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Rob

I tested and confirmed that using HTML elements in a label is not allowed (in a form, or when setting up the field in Types).

I did get it working with a generic field, though.

I see you have the same problem I initially did.

The JSON for the generic field has values wrapped in double-quotes. The src attribute in your img tag uses double quotes and so breaks the JSON format. Change the src attribute to use single quotes, I think that should fix the issue with generic fields.

Can you try that?

#1356125

Okay, I tested with a generic field with single quote img src and that seem to work.
Thank you for the help.

#1356127

My issue is resolved now. Thank you!