Forums

Required Field not working correctly...

cb1 14 Mar, 2012
Joomla 1.5.23
Choronoforms 4.0 RC3.21

Have a form in which text fields and radio button questions are required. (the form is in development and hidden).

The form consists of:
6 text boxes
1 pulldown
6 sets of radio buttons

All are marked required.

In the Events>On Submit>Auto Server Side Validation>Required I have the following:

lastnametext,firstnametext,presentaddresstext,presentcitytext,presentstatepulldown,presentzipcodetext,Ethnicity,Race,Gender,Vietnam_Era_Veteran_and_Other_Veterans,Recently_Separated_Veteran,Armed_Forces_Services_Medal_Veteran,Other_Protected _Veteran


I SUBMIT the form and keep getting an error on the LAST set of radio buttons in the Last question. It says under the radio set "Other Protected Veteran": This field is required.

But the field name is correct. it is "Other_Protected _Veteran"

In the form itself "Validation" tab is check "required" and the "Ghost" tab "Enable Ghost" is checked also.

Help is appreciated. Thanks
GreyHead 14 Mar, 2012
Hi cb1,

Please turn debug on in the form General Tab, then submit the form and post the debug - including the 'dummy emails' results here.

Bob
cb1 14 Mar, 2012
It does not give me a debug option bob. See image....
GreyHead 14 Mar, 2012
Hi cb1,

Sorry I posted the CFv3 debug message by mistake :-( Here's the CFv4 one: Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here. Note: if you are using the Easy Wizard you may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.

Bob
cb1 14 Mar, 2012
I have dropped it in - but am getting no more information other than "This Field Is Required".

Look at my attachment - you can see it is in - but do not know if the order is correct. Please verify.

If I need to switch to advanced view - let me know and I will make a copy of the form.

Thanks!
cb1 14 Mar, 2012
Data Array:

Array
(
    [option] => com_chronoforms
    [view] => form
    [Itemid] => 230
    [chronoform] => EEO_App_Prime
    [event] => submit
    [Last_Name] => t
    [First_Name] => t
    [Middle_Name] => t
    [Current_Address] => 123
    [City] => eddw
    [State] => Illinois
    [Zip_Code] => 55555
    [Ethnicity] => Hispanic or Latino
    [Race] => Asian
    [Gender] => Male
    [Vietnam_Era_Veteran_and_Other_Veterans] => (1)Vietnam Era Veteran
    [Recently_Separated_Veteran] => Not a Recently Separated Veteran
    [Armed_Forces_Services_Medal_Veteran] => Not an Armed Forces Services Medal Veteran
    [Other_Protected__Veteran] => Other Protected Veteran
    [input_submit_15] => Submit
    [4be932a4a2eac1785bb646c74042e0a5] => 1
)

Validation Errors:

Array


Emails are not coming through. But don't know if the order of elements is correct in events.
cb1 16 Mar, 2012
Not working. Trying to figure out WHY "Other_Protected _Veteran" is not working.

Here is email output:

Last Name 	v
First Name 	v
Middle Name 	v
Current Address 	123
City 	edw
State 	Illinois
Zip Code 	99999
Voluntary Self-Identification
Ethnicity 	I do not wish to provide this information
Race 	I do not wish to provide this information
Gender 	I do not wish to provide this information
Vietnam Era Veteran and Other Veterans 	I do not wish to provide this information
Recently Separated Veteran 	I do not wish to provide this information
Armed Forces Services Medal Veteran 	I do not wish to provide this information
Other Protected Veteran 	{Other_Protected _Veteran}


Submitted by xx.xxx.xxx.xx
GreyHead 16 Mar, 2012
Hi cb1,

It has a space in the name.

Bob
cb1 16 Mar, 2012
Amazing. I sat there and copied it into the validation tab, and recopied it, and recopied it. Not once noticing the space but staring and staring at it.

I then forgot to change the email template.

It's amazing what a fresh set of eyes will do. Thanks!
GreyHead 16 Mar, 2012
Hi cb1,

There must be a rule somewhere - it's infinitely easier to see the typos in other people's code.

Bob
This topic is locked and no more replies can be posted.