Hello All!
I have a simple DBF.
I am trying to display the first name submitted in the editable field in the success message. But to no luck. This is the condition where the name needs to be displayed.
I have also tried:
But nothing displays the success block.
Expected output of success should be:
Regards,
GenXCoders
I have a simple DBF.
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='DBF-Submit Data Display' clonable='1' >
<cms:editable name='first_name' label='First Name' type='text' />
<cms:editable name='last_name' label='Last Name' type='text' />
</cms:template>
<cms:set submit_success="<cms:get_flash 'submit_success' />" />
<cms:if submit_success >
<h4>Success: <cms:show frm_first_name /> Your application has been submitted.</h4>
</cms:if>
<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'
k_page_title=frm_first_name
/>
<cms:set_flash name='submit_success' value='1' />
<cms:redirect k_page_link />
</cms:if>
<cms:if k_error >
<div class="error">
<cms:each k_error >
<br><cms:show item />
</cms:each>
</div>
</cms:if>
<label>First Name</label>
<cms:input name="first_name" type="bound" />
<br />
<label>Last Name</label>
<cms:input name="last_name" type="bound" />
<br />
<button type="submit">Submit Application</button>
</cms:form>
<?php COUCH::invoke(); ?>
I am trying to display the first name submitted in the editable field in the success message. But to no luck. This is the condition where the name needs to be displayed.
- Code: Select all
<cms:if submit_success >
<h4>Success: <cms:show frm_first_name /> Your application has been submitted.</h4>
</cms:if>
I have also tried:
- Code: Select all
<cms:show first_name />
<cms:get_flash frm_first_name />
<cms:get_flash first_name />
But nothing displays the success block.
Expected output of success should be:
- Code: Select all
Success: Priya Your application has been submitted.
Regards,
GenXCoders