balooka Posted December 4, 2002 Posted December 4, 2002 hi, Is there a way to add fieldrelated errormessages in a HTML form, without using the -error tag but using the IF statement? Example: field 1: Name -> not empty field 2: Address -> unique field 3: Age -> not empty field 4: Car Brand -> unique If the user fills in this form and leaves field 1 blank, I would like to see a message in a tablecell behind that field only. If both fields 1 and 3 are empty the message should go to both fields. The -error tag I use on general pages, but this would make things easier for clients because they now can see what they did wrong. I have been trying some javascript stuff but I don't get it to do what I want... Any advise? Thanks, JP
Garry Claridge Posted December 4, 2002 Posted December 4, 2002 You can use [FMP-If:CurrentError.eq.123] etc. However, it may be quite difficult determing which field is causing the error. I recommend using Javascript for this type of thing. You may need to study a little DynamicHTML. All the best. Garry
Recommended Posts
This topic is 8095 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now