Hello I might oversee something. Hopefully someone could point me towards the right direction.
I want to do a quiz where the Admin can change the Questions and the possible Answers and the Visitors can do the quiz and submit a form with the correct Answer. Thats easy!
But what can I do with the submitted form? It seems like couchcms can only send the form via Email. Is there a way to see the submitted data in de Admin Backend?
Ok I know there are DataBound Forms. But do they suite my needs? I dont know how to place configurable inputfields in DataBound Forms i started like this:
Thank you for any Help!
kind regards
Olaf
I want to do a quiz where the Admin can change the Questions and the possible Answers and the Visitors can do the quiz and submit a form with the correct Answer. Thats easy!
But what can I do with the submitted form? It seems like couchcms can only send the form via Email. Is there a way to see the submitted data in de Admin Backend?
Ok I know there are DataBound Forms. But do they suite my needs? I dont know how to place configurable inputfields in DataBound Forms i started like this:
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='form' clonable='1'>
<cms:editable name='participant_name' required='1' type='text' />
<cms:editable name='answer' required='1' type='dropdown'
opt_values=' possible answers=- | Ans 1 | Ans 2 | Ans 3 | Ans 4 '
//1. how can the Admin change those possible Answers in the Backend?
/>
</cms:template>
<cms:form masterpage=k_template_name mode='create' enctype='multipart/form-data' method='post' anchor='0'>
<cms:if k_success >
<cms:db_persist_form _invalidate_cache='0' _auto_title='1'/>
<cms:set_flash name='submit_success' value='1' />
<cms:redirect k_page_link />
</cms:if>
<p>What is the Answer to this Question? <p>
//2. and how can i make this <p>-Tag editable from the Admin-Backend?
<!--
3. of course this is noch going to work but i tried all kind of stuff:
<cms:editable type="richtext" name="aQuestion">
<p>Second Question here?</p>
</cms:editable>
-->
<cms:input name="participant_name" type="bound" />
<cms:input name="answer" type="bound" />
<cms:if "<cms:not submit_success />" >
<button type="submit">Submit Answer</button>
</cms:if>
</cms:form>
<?php COUCH::invoke(); ?>
Thank you for any Help!
kind regards
Olaf