-
Hi newbE,
I have looked at your test1 file. There are a couple of mistakes I can see:
1. in your rules for field 10, you are comparing field8 to a display name (i.e. test1). It should be comparing to the value. i.e. field8 = '100'.
2. the condition should use ''and'' not ''or''.
For example field8 = '100' and field10 = ''yes''
Hope this ...
-
Hi,
Have you seen this free download?
http://infopathdev.com/downloads/free/default.aspx?i=872fe5147a23458ca9a6968c9cda5055
It has an example for using code to populate the main DOM from a secondary data source.
Hope this helps you.
-
The above first link should not have a '','' at the end,
http://www.infopathdev.com/howto/tips/default.aspx?i=f51a0baec2cc4785a879810e04a8490b
-
Here is a How-To tutorial that should get you started on how you can do this:
http://www.infopathdev.com/howto/tutorials/default.aspx?i=5387945327d4477089eb9cfea1e8858f
Hope this helps.
-
Have you tried to put them in table layout? I did my form that way and they came out as I placed them.
-
Hi Patrick, hi chinhnc,
thanks for your advice. Yes, I have thought about the solution to use rules that submit and close the form. But if I use this way I miss that the form is shown as a preview in the body of the email.
But --- Is it right that using the MailEnvelope object is the only way to show the preview of the form in the emal body or ...
-
Have you tried using rules and actions to do this:
1. Create a button for your double export (if you don't have one)
2. Add a rule to the button with a condition that checks ''The Expression'' where the right-hand side calls xdExtension:ExportViewAsMHT()
3. Set the action to switch to the new view
4. Add another rule that does the same thing and ...
-
Hi Karsten,
Chinhnc is right - you need to correct your code to do a submit. But, I have a bigger question: why se code at all for this? You can define rules on a button that submit and then close the form. That should be easier.
-
Hi Gsantosgo and welcome,
Be very careful when you modify the XSN's data source. Make sure that you don't a) change the name of nodes, b) change their structure, and c) add new nodes as optional. Otherwise, simple relink won't work for old forms as their schema won't be compatible.
-
Hi Bigcat,
Does the form do a SharePoint submit or are you using File->Save? Are there any other data connections in the form?