9 Posts
wellis
5 years ago
2
Topic

Hello

I have a radio field with 2 option - "Given" and "Not Given".

The user enters their choice in the front end form and I'd like to display the results in a list using icons to replace the text.

So in my case "Given" to be replaced by Tick and "Not Given" by a cross.


I've been trying all day to do this using HTML typography and custom attributes with no luck.


Can someone point me in the right direction please?

Thanks

William

Get a VIP membership
4229 Posts
Kadministrator
5 years ago
1
Level 1

You will probably need to use some javascript, google has tons of solutions for this.

9 Posts
wellis
5 years ago
0
Level 2

Thanks Klas

When adding the javascript I don't know what the value of the radio field is to change.

I have option1=1 and option2=2 but what should I use as an identifier in the javascript to change either of these values?

so if I use -           If radioValue = option1 {block 1}; else {block2};

what should I use for the radioValue?

Any help appreciated.

William

Get a Book for SEBLOD