CouchCMS
Login
Register
Username
Password
I forgot my password
Login
Register
CouchCMS Forum
Bug Reporting and Troubleshooting
Problems, need help? Have a tip or advice? Post it here.
6 posts
Page
1
of
1
Post a reply
Previous
Next
Search
Databound problem
delarn
Registered User
Posts:
17
Joined:
Mon Nov 25, 2013 9:48 pm
by
delarn
» Mon Nov 25, 2013 10:00 pm
Hi all, I've made a databound form for my website (
http://www.geekbrasseur.com
). I have followed the tutorial and the type="bound" is not working.
Can you help me?
Re: Databound problem
KK
Moderator
Posts:
8626
Joined:
Wed Dec 01, 2010 5:35 pm
by
KK
» Mon Nov 25, 2013 11:06 pm
Hi and welcome delarn
Can you please let us know the exact problem?
If possible please paste in the form code that you are using.
Thanks.
Re: Databound problem
delarn
Registered User
Posts:
17
Joined:
Mon Nov 25, 2013 9:48 pm
by
delarn
» Mon Nov 25, 2013 11:37 pm
<cms:template title='Register' clonable='1'>
<cms:editable name='first_name' required='1' type='text' />
<cms:editable name='last_name' required='1' type='text' />
<cms:editable name='email' required='1' validator='email' type='text' />
</cms:template>
<cms:set submit_success="<cms:get_flash 'submit_success' />" />
<cms:if submit_success >
<div class="alert alert-success"><strong>Success:</strong> Your application has been submitted.</div>
</cms:if>
<cms:form
masterpage=k_template_name
mode='create'
enctype='multipart/form-data'
method='post'
anchor='0'
>
<cms:if k_success >
<cms:check_spam email=frm_email />
<cms:db_persist_form
_invalidate_cache='0'
_auto_title='1'
/>
<cms:if k_success >
<cms:set_flash name='submit_success' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
<cms:if k_error >
<div class="alert alert-danger"><strong>Error:</strong>
<cms:each k_error >
<br><cms:show item />
</cms:each>
</div>
</cms:if>
<div class="form-group <cms:if k_error_first_name || k_error_last_name >has-error</cms:if>">
<label class="control-label" for="first-name">Nom <span class="required">*</span></label>
<cms:input class="form-control" id="first-name" name="first_name" placeholder="Prénom" type="bound" value="" />
<cms:input class="form-control" id="last-name" name="last_name" placeholder="Nom" type="bound" value="" />
</div>
<div class="form-group <cms:if k_error_email >has-error</cms:if>">
<label class="control-label" for="email">Courriel <span class="required">*</span></label>
<cms:input class="form-control" id="email" name="email" type="bound" value="" />
</div>
<div class="form-group <cms:if k_error_human >has-error</cms:if>">
<label class="control-label" for="human">De quelle couleur est une banane bleu? (4 lettres)</label>
<cms:input class="form-control" id="human" name="human" type="text" required='1' validator='regex=/^bleu$/i' />
</div>
<cms:if "<cms:not submit_success />" >
<button class="btn btn-primary" type="submit">Enregistré!</button>
</cms:if>
</cms:form>
All I want to do is a register form and a survey at the same time.
Re: Databound problem
delarn
Registered User
Posts:
17
Joined:
Mon Nov 25, 2013 9:48 pm
by
delarn
» Tue Nov 26, 2013 8:28 pm
I was using 1.3.5 instead of 1.4 rc1
Re: Databound problem
KK
Moderator
Posts:
8626
Joined:
Wed Dec 01, 2010 5:35 pm
by
KK
» Tue Nov 26, 2013 8:30 pm
Thank you for letting us know. I was in the process of testing your code.
Re: Databound problem
delarn
Registered User
Posts:
17
Joined:
Mon Nov 25, 2013 9:48 pm
by
delarn
» Tue Nov 26, 2013 9:07 pm
Now I just have to wait for a sign up system. For now I'll build my survey page and have my future users fill it.
Post a reply
Previous
Next
Search
6 posts
Page
1
of
1
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Return to Bug Reporting and Troubleshooting
Jump to:
Select a forum
------------------
CouchCMS Forum
News and Announcements
General Discussion
Bug Reporting and Troubleshooting
Tips and Tricks
Showcase your site
Feature Requests
Product Updates
The team
Delete all board cookies
All times are UTC + 5:30 hours