Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use one user input in two forms?

 
will zhang
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I want to use a multiple select to ask user select the item they want. The items selected will be on a pdf file which will be sent as attachment of email (user can click "send email" button to send them). The user wants to confirm if the pdf is right before he sends it. Therefore, I create a "PDF" button to ask user to check if the PDF attachment is what he wants to send.

Here is the situation:
Since the "PDF" button and "send email" button will both use the selected item info, I don't want the user to select the same list twice(of course user doesn't want to do that).

I thought to store the selected info in session when the user click "PDF" so that they have the info when he clicks "send email". But user may just click "send email" directly without checking first, then the selected info will be lost.

Any suggestions about this? Thanks
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand the problem. If there's a form submission, the form information can be saved and pre-selected when the form is displayed again. It could also be done using Ajax.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic