Submitting to Non-InfoPath Users

S

Steve Hohman

I have a form that I would like to submit to people that have InfoPath
(co-workers) and people that do not have InfoPath (clients) at the same time.
I have figured out how to submit a form to email, but the email attachment
is a raw XML file when the client gets it and makes no sense to the client.

Can I submit using a “Custom Submit Using Form Code Option†parameter and
submit the form using the following parameters:
- Convert form to something viewable by a user without InfoPath
(modification is not necessary, just seeing the form)
- Send the form to an email (example (e-mail address removed))
- Send the form BCC to three email addresses (worker1, worker2, and
(e-mail address removed))
- The email would be submitted using concat(“Completed Work Order For “,
ClientName) as the subject line (have done this in the Submit Wizard)
- The attachment name would be the same as the subject line

Any help would be appreciated. I have done very little in coding, so if you
feel like submitting code and can make it pretty much a copy and paste
format, I would be very grateful.
 
S

Sam Bogart

One approach would be to craete an XSL stylesheet that transforms the
InfoPath XML document to an XHTML presentation, and add a processing
instruction to the documents that references that stylesheet. When the
user goes to open the XML file the processing instructions for InfoPath
won't do anything on a computer without InfoPath installed, so the
stylesheet will be used to present it in a format that any browser can
handle.

The structure and content of the XSL are going to depend largely on the
XML schema of your document, but the processing instruction is fairly
generic:
<xsl:processing-instruction name="xml-stylesheet">type="text/xsl"
href="INSERT_URL_TO_YOUR_XSL_HERE"</xsl:processing-instruction>
 
S

Steve Hohman

I did some additional reading on down-level views and it looks as though this
will convert the form just fine, but there may be some additional
modifications needed to get the form to my client.


What I am hoping to do is based on this scenario.
I have 2 submit buttons in the form. The first submit button is used after
the work order information is entered by one of three employees, all of which
have InfoPath. This submit button attaches the form to an email and then
sends it to all three employees so we know we have a generated work order.
The person completing the work then calls the form up in the field and enters
additional information into the form based on the work done.

After all work is completed, there is a second submit button that sends the
completed work order to the same three people as above (the ones with
InfoPath) and to an email address entered into the form as the contact at the
clients location. This person does not have InfoPath installed. Therefore,
I need to have some code entered into that submit command that converts the
form and attaches the converted form to the second email so that all
recipients, whether they have InfoPath or not installed, can read the
finished product. As I mentioned before, this is second email is a read-only
format, no further modification of the form is necessary, so there is no need
to retain the XML structure. After some more time (and learning on my part),
the forms will be redone to link to a database that will hopefully be
populated before the second submit is done.

Is this possible with the command line mentioned by Sam, or am I starting
into an exercise in futility?

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top