alexey1: Which version of Formz are you using? Also, did you get Formz from the repository or from github? If from github, can you send the commit number?
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
-
- 2 Posts
Formz v1.0.0-rc3 installed from repository
alexey1:
When I tested Formz on a new install of MODX 2.2.9-pl, it worked fine for me.
What fields do you have configured in Formz? What settings do you have configured in Formz?
Please try creating a new Formz form (with all default settings) with only one field (with all default settings). Then, call that Formz and see if it works.
Sometimes if elements are nested too deeply, they fail to get processed by MODX, at least in some versions. Try putting the Formz call directly into an empty resource to see if that fixes the issue.
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
Expanded documentation and a tutorial is now at
http://rtfm.modx.com/extras/revo/formitfastpack/
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
-
- 89 Posts
I've been trying for hours now and I can't get the <label> to wrap around the <input> for radiobuttons.
I would like this:
<label>
<input>
Option one
</label>
But it alway's outputs this:
<input>
<label>
Option one
</label>
I tried to make this work by changing the fieldWrapTpl and fieldTypesTpl.
Can you help me out?
Thanx in advance!
@mdehaan: Can you attach your fieldWrapTpl and fieldTypesTpl and post the call to your field snippet?
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area
The <input /> is in the placeholder [[+inner_html]], so you should wrap the label around that in your fieldWrapTpl. For example:
...
<label for="[[+name]]" title="[[+name:replace=`_== `:ucwords]]">
[[+label:default=`[[+name:replace=`_== `:ucwords]]`]][[+req:notempty=` *`]]
[[+inner_html]]
</label>
...
To explain, the chunk-processing order is as follows:
- Options (if any) are processed and placed into [[+options_html]] placeholder
* Generated from: the chunk specified by &tpl (default=fieldTypesTpl), if any, or the override by &options_html, &options_element* params
- The input is processed and placed into the [[+input_html]] placeholder
* Generated from: the chunk specified by &tpl (default=fieldTypesTpl), if any, or the override by &inner_html, &inner_element* params
- The final output is processed
* Generated from: the chunk specified by &outer_tpl (default=fieldWrapTpl), if any
WebsiteZen.com - MODX and E-Commerce web development in the San Francisco Bay Area