Hello,
this is the first time experimenting with DataBound Forms and I'm having a few issues.
First off, this is the kfunctions.php:
I followed the guide and copied the important parts to make it easier on my part, but I'm getting errors:
First Issue:
The code for that is this:
These are basically copies of the tutorial since I'm still playing around with it.
I commented both out and the page render fine, without the file upload ofc.
Second Issue:
After submitting the form I get yet another Error:
And the Code, again pretty much a copy of yours:
Third Issue:
This isn't specific to DataBound forms I think, but in the context of an Application Form it makes more sense.
So I'm trying to get the options of the open positions to be dynamic, to be able to switch on and off in the backend. This way editors could take job offerings on and offline at any time, without the need to alter the apply form.
I already have a page completely set up where the open Positions are stored in clonable pages (it's basically set up like the blog tutorial, nothing special), but I can't get the open positions to be dynamic.
I tried building a loop with the cms:pages tag, but that didn't work out as I expected, in fact nothing got displayed at all, this is what I did:
And forth (so far last) problem:
The input fields with a type="bound" have an inline style (99% width) when rendered in the front-end. I understand that this is coming from the rendering in the backend, but is there a way to disable this in the front-end? I know I can overwrite it with an !important CSS definition, but I would really like to avoid that if at all possible.
Sorry for the wall of text, I wasn't sure how much details are needed
If there are any more infos needed, I'm sure I can get more detailed 
Best regards
Mihawk
this is the first time experimenting with DataBound Forms and I'm having a few issues.
First off, this is the kfunctions.php:
- Code: Select all
<?php
if ( !defined('K_COUCH_DIR') ) die(); // cannot be loaded directly
//require_once( K_COUCH_DIR.'addons/cart/session.php' );
//require_once( K_COUCH_DIR.'addons/cart/cart.php' ); // automatically includes session
require_once( K_COUCH_DIR.'addons/data-bound-form/data-bound-form.php' );
//require_once( K_COUCH_DIR.'addons/inline/inline.php' );
I followed the guide and copied the important parts to make it easier on my part, but I'm getting errors:
First Issue:
ERROR: Tag "editable" has unknown type "securefile"
The code for that is this:
- Code: Select all
<cms:editable name='resume' required='1' allowed_ext='pdf, doc, docx' max_size='1024' type='securefile' />
[...]
<label>Attach a Copy of Your Resume
<cms:input name="resume" type="bound" />
<p>Word or PDF Documents Only</p>
</label>
These are basically copies of the tutorial since I'm still playing around with it.
I commented both out and the page render fine, without the file upload ofc.
Second Issue:
After submitting the form I get yet another Error:
ERROR! Unknown tag: "db_persist_form"
And the Code, again pretty much a copy of yours:
- Code: Select all
<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:if>
Third Issue:
This isn't specific to DataBound forms I think, but in the context of an Application Form it makes more sense.
So I'm trying to get the options of the open positions to be dynamic, to be able to switch on and off in the backend. This way editors could take job offerings on and offline at any time, without the need to alter the apply form.
I already have a page completely set up where the open Positions are stored in clonable pages (it's basically set up like the blog tutorial, nothing special), but I can't get the open positions to be dynamic.
I tried building a loop with the cms:pages tag, but that didn't work out as I expected, in fact nothing got displayed at all, this is what I did:
- Code: Select all
<cms:set open_positions="Please choose=-" />
<cms:pages masterpage="applications.php">
<cms:set open_positions="<cms:show open_positions /> | <cms:show k_page_title />" />
</cms:pages>
<cms:editable name='position' required='1' type='dropdown'
opt_values="<cms:show open_positions />"
/>
And forth (so far last) problem:
The input fields with a type="bound" have an inline style (99% width) when rendered in the front-end. I understand that this is coming from the rendering in the backend, but is there a way to disable this in the front-end? I know I can overwrite it with an !important CSS definition, but I would really like to avoid that if at all possible.
Sorry for the wall of text, I wasn't sure how much details are needed


Best regards
Mihawk