@all,
Is it possible to do the following in the back end.
I want to have repeatable region. Which can be used to upload:
1. Image or
2. Video URL.
Now what I am looking for is, When a radio button is selected for
1. Image it should show a browse option (editable with type='image')
2. video it should show a text field (editable with type='text')
I have created a simple html code for displaying the different input types which i have attached here in. ( )
On the couch end i have the following:
What should i do to integrate the code in the attached file with the repeatable region, so that the browse option is shown when IMAGE is selected and TEXT Field is shown when Video is selected.
Regards,
GenXCoders
P.S. Is this possible to be done in couch?
Is it possible to do the following in the back end.
I want to have repeatable region. Which can be used to upload:
1. Image or
2. Video URL.
Now what I am looking for is, When a radio button is selected for
1. Image it should show a browse option (editable with type='image')
2. video it should show a text field (editable with type='text')
I have created a simple html code for displaying the different input types which i have attached here in. ( )
On the couch end i have the following:
- Code: Select all
<cms:repeatable name='gallery' label='Gallery' order='1' >
<cms:editable name="gallery_item" label="Gallery Item" opt_values='Select one | Image=0 | Video=1' type='radio' />
</cms:repeatable>
What should i do to integrate the code in the attached file with the repeatable region, so that the browse option is shown when IMAGE is selected and TEXT Field is shown when Video is selected.
Regards,
GenXCoders
P.S. Is this possible to be done in couch?