Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi!

It's been a while! ;)... I'm finally wrapping up an older project by implementing couch. All the new features got me quite exited for some other stuff I'm hoping to tackle soon. So, the new feature of the databound forms is quite exciting. Any chance one can implement an e-mail notification? If I take the example in the documentation of the application form it would be quite nice to not have to log in to the site every time to check if someone submitted something. Is it possible?
Hi klaus,

Has been quite a while indeed. Hope you are doing great :)

As for the databound forms, Klaus, please realize that the 'forms' component in 'databound forms', it is our plain old cms:form tag.

Everything you know about cms:form is applicable with databound forms too - including sending emails in k_success condition. For example, the following modification to the sample code should do what you want -
<cms:if k_success >

<cms:check_spam email=frm_email />

<cms:db_persist_form
_invalidate_cache='0'
_auto_title='1'
/>


<!-- SEND MAIL BEFORE REDIRECTING -->
<cms:send_mail .. ></cms:send_mail>


<cms:set_flash name='submit_success' value='1' />
<cms:redirect k_page_link />

</cms:if>

Hope this helps.
Thanks, that's great! Opens a lot of nice options! ;)
3 posts Page 1 of 1