<![CDATA[ Support/Comments for FormProcessor - My Forums]]> https://forums.modx.com/thread/?thread=46438 <![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=4#dis-post-268527 hotdiggity Feb 23, 2009, 09:00 PM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=4#dis-post-268527 <![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=4#dis-post-268526 Can anybody tell me how I get the form to submit if I have a required checkbox in the form?
<input name="Acceptance" type="checkbox" id="Acceptance" value="Agree">[+Acceptance-checked-Agree+] I agree />

Better late than never... wink]]>
hotdiggity Feb 22, 2009, 11:13 PM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=4#dis-post-268526
<![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268525 Quote from: web_designer at Aug 29, 2006, 08:10 PM

Also is there a way to setup CC in the form?

How can this be achieved with Formprocessor?

I simply want the e-mail also sent to the [+Email-value+] address of the person who fills in the form.

thx]]>
BB2 Jan 26, 2007, 03:04 AM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268525
<![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268524
Can anybody tell me how I get the form to submit if I have a required checkbox in the form? I mean my form worked fine without the required checkbox. Do I need to declare another constant in the snippet and use a different class for the checkbox?
Any examples out there, using checkboxes (e.g checked to confirm you agree with/accept a certain condition?

Thanks

Jim Cricket,
New Zealand]]>
cricketnz Dec 04, 2006, 03:59 AM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268524
<![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268523
Now, if you have mySQL 4.1+, then this may not be too bad ... bearing in mind I haven’t used FormProcessor so I’m going on my interpretation of the description you’ve given above.

If I understand the problem correctly, then you have a table with at least three fields (form ID, field, value) and you need to transpose the name field into a column so you can sort on each of the fields.

In this case, here is an example query that illustrates one way in which you can do the transposition (with some made-up dummy values):
SELECT id,
group_concat( if( field = 'month', value, NULL ) ) AS Month,
group_concat( if( field = 'number of children', value, NULL ) ) AS NumberOfChildren
FROM `submissions`
GROUP BY id
ORDER BY NumberOfChildren;

Essentially, the ’group_concat’ statements does all the work in transposing the values, the IF statement either returns the value if it’s available or a null if it’s not, and the ’AS ...’ bit is the name of the column you wish to create. You could add as many of these as you have possible field names (I don’t know how fast performance degrades doing this type of manipulation but it’s something to watch for). To sort the values, you just need to change the ORDER BY clause as required.

(something to watch out for is that mySQL could turn the values into BLOBs if the query reaches a certain length, so if you’re using phpMyAdmin you will need to export the data to visually see the values being returned in the query - the values will display fine through MODx as well)

Obviously, if you’re not running mySQL 4.1+, then it’s back to drawing board undecided]]>
garryn Oct 31, 2006, 07:24 PM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268523
<![CDATA[Still no luck...]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268522
I’ve tried to construct a query using the GROUP BY with no luck (I didn’t figure I’d find enough MySQL knowledge to form a proper query.)

Does anybody have any suggestions with how to display the data stored in the "values" field? I’m flatly out of ideas after about 10 hours of trial and error.

Thanks,
Duane]]>
Duane Oct 31, 2006, 04:50 PM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268522
<![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268521
First, it loads the "submissions" table with some data about that form submission. It then takes the insert_id from that, and uses it to identify this particular form submission.

Now it enters the insert_id, the name of the field, and the value of the field for each field in the form, into the "values" table.

So your query to get the information by using WHERE and GROUP BY clauses. It’s a little deep for me right now, but perhaps one of the SQL gurus are more familiar with how to query this kind of data organization.

]]>
sottwell Oct 30, 2006, 10:59 AM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268521
<![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268520 sottwell Oct 30, 2006, 10:35 AM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268520 <![CDATA[Need some help with FormProcessor data display...]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268519
But, I want certain managers of the foster parent program to be able to log into a password protected page to view the current applictions. MODx handles the password protection fine, no problem there. It’s the displaying of the records I’m struggling with.

The FormProcessor data is stored in a table named "modx_submission_data" and a field named "values." I want to control the display of the data inside the "values" field. For example to let the foster program managers search/sort the list by month of application, number or gender of children they wish to care for, current household size, etc. These are all values that are filled in on the form.

The problem is, I haven’t been able to construct a query that displays anything except the entire contents of the "values" field in a vertical stack. I’m sure it’s just my stupidity, but I can’t seem to grab the data in a way I can manipulate it beyond the level of the "values" field. (In other words, I can’t figure out a way to query any deeper than db/table/field...and the FormProcessor data is stored a level deeper than that.)

Can anyone point me in the right direction? I’m out of ideas!

Thanks for any help...I really appreciate it!

Duane

]]>
Duane Oct 30, 2006, 10:04 AM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268519
<![CDATA[Re: Support/Comments for FormProcessor]]> https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268518
I would like to create a ’Refer this page to a friend’ form with fields where a person could enter email addresses of their friends are included. Is this possible with FormProcessor?]]>
trumpetmic Sep 13, 2006, 12:31 PM https://forums.modx.com/thread/46438/support-comments-for-formprocessor?page=3#dis-post-268518