Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello KK,
Let's say I have this editable field which is a dropdown:
Code: Select all
 <cms:editable name="required" label="Required?" type="radio" opt_values='Yes=1| No=0' />


I am able to get the option values alright but i want to know if there is a way to get the option names too? i.e (Yes or No). Thank you
Hi,

By default, Couch only saves the 'value' of the selected option (e.g. '1' and '0' in your example) and that is what it provides on the front-end. So, there is not direct way of accessing the 'key' from the provided 'value'. I am afraid.
Ok KK,
Thank you very much for the response.
3 posts Page 1 of 1