Try our conversational search powered by Generative AI!

Creating radio button in a block type

Vote:
 

Hi,

I want to create a radio button in block type and its functionality would be like this:

For Editor:

the editor can able to add text on the radio button and when the radio button is true a TinyMCE will appear so that the editor can able to add images and text.

For user:

The user will see text on the radio button, after clicking on the radio button user will see a Div appear under the radio button and the div contains text and images added by the editors.

Please let me know how can I create this in a block type.

Regards,

Tapas

#268323
Edited, Dec 13, 2021 13:05
Vote:
 

Hi, why not creating a something like a "RadioRichTextBlock" which contains a Radio A Text field, Radio B Text field and a  XhtmlString field for the TinyMCE. Showing/Hiding of the text is part of the frontend. Editor can then use and place the block wherever needed

#268505
Dec 16, 2021 15:16
Tapas - Dec 16, 2021 18:38
could you please show me one example of it? if you have any project links or anything?
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.