Okay, I've been a QA for years and I'm sure there is a way to do what I need done but I have a developer saying it's not possible. He's a decent developer, but not the greatest ever. Certainly not one to do any research, so I thought I would. Here's the situation:
There's a piece of my app that is a basically a contacts area. You can either ADD a contact if you know their systems contactID or you can search for them by Name, State or Plant Code and once you find them then add them to your contacts list. So with that said, there's a section that you can simply enter a contactID and hit the 'ADD' button and another section where you enter search criteria and enter a 'SEARCH' button to return results. My question is that if my focus (cursor) is in the contactID text box and I hit 'ENTER' I want the contactID to be added. If my focus is on one of the three search text boxes and I hit 'ENTER', I want that action to return results of my search criteria. My developer says you can determine only one button on the page to be defined as the 'ENTER' Action and I'm sure there has to be away to use focus to dynamically set what the 'Enter' button does.
I hope that makes sense.
Thanks,
Micah
There's a piece of my app that is a basically a contacts area. You can either ADD a contact if you know their systems contactID or you can search for them by Name, State or Plant Code and once you find them then add them to your contacts list. So with that said, there's a section that you can simply enter a contactID and hit the 'ADD' button and another section where you enter search criteria and enter a 'SEARCH' button to return results. My question is that if my focus (cursor) is in the contactID text box and I hit 'ENTER' I want the contactID to be added. If my focus is on one of the three search text boxes and I hit 'ENTER', I want that action to return results of my search criteria. My developer says you can determine only one button on the page to be defined as the 'ENTER' Action and I'm sure there has to be away to use focus to dynamically set what the 'Enter' button does.
I hope that makes sense.
Thanks,
Micah