Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
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?
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.
<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.
I was using 1.3.5 instead of 1.4 rc1
:D
Thank you for letting us know. I was in the process of testing your code.
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.
6 posts Page 1 of 1