• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assigning Key Values to Multiple Submit Buttons

 
John Olston
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can set a key value on each submit button. I have a table that contains
multiple submit buttons. When one of those submit buttons is clicked, I need to pass the key value of the submit button that will be used to call a business service to retrieve data for that key. Any ideas? Thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John,
Have each submit button call a javascript function with a distinct value. That function can set a hidden field with your key value and the hidden field is part of the form.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic