Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
@All!
Greetings from GenXCoders!

I wanted to know how can we submit a checkbox selected option to the back end.
There is a check box in my DBF, It is required field and has to be checked for the form to submit. It is actually a checkbox to ensure that the user needs to agree to the terms for submitting the form.

How to go about? The checkbox is not even displayed on the front end.

Regards,
GenXCoders
Image
where innovation meets technology
Hi,

The procedure is the same as with all other types - expose the checkbox as 'bound' field and the rest would be taken care of by Couch.
The checkbox is not even displayed on the front end.

Well, in that case you need to begin with trying to find out why the checkbox is not being displayed.
Take a look at the generated code - if the markup for the checkbox is present (as it should), then scrutinize your CSS.
@KK Sir,
I have checked the mark-up. It is not available in the generated HTML markup.

I have used the following code:
1. for input bound field:
Code: Select all
<cms:input type="bound" name="privacy_accept" /> I will abide to the Privacy Policies

2. for editable field:
Code: Select all
<cms:editable name="privacy_accept" label="Categories" desc="Check all applicable" type='checkbox' />


There are no CSS classes implemented.

Regards,
GenXCoders
Image
where innovation meets technology
You may need some opt_values
Code: Select all
<cms:editable name="privacy_accept" label="Categories" desc="Check all applicable" type='checkbox'  opt_values='Entertainment | Computers | Sports | Health'/>


http://docs.couchcms.com/tags-reference ... ckbox.html for more info
@keakie

Thanks a ton... I missed that part completely... My Bad!!! Thanks a ton...

Regards,
GenXCoders
Image
where innovation meets technology
5 posts Page 1 of 1

Who is online

In total there are 3 users online :: 1 registered, 0 hidden and 2 guests
(based on users active over the past 5 minutes)

Users browsing this forum: Bing [Bot] and 2 guests