Requiring Fields using code - not wizard!

cb1 26 Jan, 2012
Hey,

I have a client that needs some applications fields REQUIRED now two years after I originally created the form.

The form was not created using the form wizard.

And I'm not sure how to go into the code and require fields or what code to even put there.

Does it require anything else also?

I apologize. I have looked around the forums and can't find how to do this.

They are currently using Joomla 1.5.23, and Chonoforms 3.1.RC5.2

The are on a secure, stand alone, inhouse server. The site - in total will be upgrade to the latest version in February.

Any help is really appreciated. Thanks!
GreyHead 26 Jan, 2012
Hi cb1,

Open the form by clicking the Form Name link in the Forms Manager. You can see and edit the Form HTML from the Form Code tab and you can (probably) add extra validations on the Validation tab (assuming that they haven't used any custom validation).

Bob
cb1 26 Jan, 2012
Hey Bob,

I'm already there. What I meant to say is that I don't know the symantics of the code I need to include in the code lines.
GreyHead 26 Jan, 2012
Hi cb1,

It should be enough to add the extra input names on the Validation tab.

Bob
cb1 26 Jan, 2012
Could you give me a sample of code that goes into the validation tab. I take it you are talking about Server side. So I would have to turn that on.
GreyHead 26 Jan, 2012
Hi cb1,

I was taling about the Clientside validation; entering the input names should be enough for that. If you need Serverside validation there's a little example by the box. Basically you test the variable and return an error message if it fails.

Bob
cb1 26 Jan, 2012
I'm not looking right at the moment - but there are fields in the Validation tab that accept those if I remember right. I will look shortly - getting pulled 50 different directions at the moment.

Hey - I don't mean to change gears - but am going to for a second.

This client now wants on the form submission - to push the form information to a third party in something that can be read in an excel spreadsheet.

#1 - That would be pushing a CSV file correct?

#2 - Again - without me looking at the moment - that's possible isn't it?

Thanks!
GreyHead 26 Jan, 2012
Hi cb1,

There's a function in the Forms Admin area to download a csv file. If you want to push it automatically then I think you probably have to hand-code the file creation. It's certainly possible, I've done it for other applications.

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