• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

how to use one user input in two forms?

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic