File Saving and Mail Sending

How do you do the @Command([FileSave]) when you are storing your form in a document and sending it off with @Command([MailSend])? The fields won't save when I send off the document and I want to send the whole form.

I currently have the form set to "store form in document" and the database set to "allow use of stored forms in this database".
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

just do a @command([filesave]) and in querysave give this: (assumption is u already hgave a sendto field)

call source.send

Do you need o save the form at all, or just send it with the form and fields complete?  If you only need to send, don't bother with the save, and just use @Command([MailSend]) or even just @MailSend.

If you need to do both, add a field to your form called MailOptions, value (or default value) "1"
When that field has that value, every save will also resultin a send.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.