Cyto Posted October 28, 2010 Share Posted October 28, 2010 Hey, who can help? Example: I want to insert a row with a input and a select option. I am inserting now with select option, but i want to insert with a input too, because if i need to insert a link instead of choosing from select option. --------- (puts a link)Link: ...link... (chooses nothing)Select: Choose one... Submit --------- I need something like if LINK is filled insert it. Nothing happens to SELECT, but they have to have the same row names. Hope its clear enough. Cheers Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted October 28, 2010 Share Posted October 28, 2010 Actually, it isn't very clear at all . . . Quote Link to comment Share on other sites More sharing options...
Cyto Posted October 28, 2010 Author Share Posted October 28, 2010 See it has: uploading a avatar, you can choose one of the list that the site provides or upload via a link and insert in the row with the same name of the 2 options. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted October 28, 2010 Share Posted October 28, 2010 OK, I think I understand what you want now. When you validate the form, just check that the two fields don't both have a value when the form is submitted. If both fields have a value, notify the user to pick one from the select list, or enter a link, but not both. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.