Hi
I have built a searchform that is searching a dB for users. Three fields are used for searching, name, adress etc.. and the fourth is for getting a user when you already know the users id. The form starts with two radiobuttons where you choose if you gonna search or just get a user. When search, the id field is blocked and when getting a user through a user id the other three are blocked(using js).
what i want but have not been able to construct myself is the form to feel what fields are entered with text, either one of the three or the fourth id field. The result is picked up from different databases an are also supposed to be presented differently.
Is it possible to make the submit button react differently depending on this?
Any help appreciated
/Axel