Re: CUSTOM and SUBMIT
bugant <[email protected]> Tue, 15 Nov 2005 12:58:10 +0100
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Message-ID | <[email protected]> |
hi, Dietrich J Kappe wrote: > 1. Is there a prefered way to repopulate the values of fields in a CUSTOM > tag? Trying to insert variables the first time through doesn't seem to work. > Time for some preparse perl snippets? I'm sorry I don't understand what are you tring to do... so I can't help (I'm really sorry for my bad english). > 2. I've been eyeing the SUBMIT tag for a way of further validating fields, > for example, if a field is supposed to be a zipcode, I'd like to check if it > is 5 digits. If not, I want to issue an error and drop into the usual > mod_survey error handling. > > Could there be an opportunity for a validation component here? hmm... you can do it using javascript... but yes, we could think a nicer way to do it. if you're interested in how to do it with js let me kwon. > One suggestion for an improvement: rather than pop to a seperate page that > tells you that you have a problem and encourages you to hit the back button, we've done it. this's is on the devel tree but I think it'll be on stable branch soon. cheers, bugant. Skickat av bugant <[email protected]> till survey-discussion