-
I would just put the text and the control into a section and hide the complete section till you have selected something from field y.
-
Hi all,
is it possible to open a document attached to the form (attachment control) programmatically ?
-
There are also free downloadable convert programs C# to VB available in the net. They won't to the completet work for you but it'll definetely help.
-
okay let's say you have a textbox control on your form named field1.
Now go to tools - programming - and select OnLoad event in the menu bar.
Now you can use:
XDocument.Dom.SelectSingleNode(''my:myField/my:field1'').text = System.Environment.Username;
-
Oh sorry I think this will only work with managed code and not with scripting. So you had to use the InfoPath toolkit for visual studio.
-
I wouldn't know now of any other way but to create your own eMail body.
With this:
MailMessage objMail = new MailMessage();
objMail.BodyFormat = System.Web.Mail.MailFormat.Html;
objMail.From = ''from@address.ca'';
objMail.To = ''to@address.ca'';
objMail.Subject = ''Test Subject'';
objMail.Body = ''<b>FROM:</b>'' + ''<font ...
-
It just gives you the freedom to create your own eMail body including html tags for formating.
You need to change MailMessage objMail = .....
to var objMail = new MailMessage();
Like this you should get rid of the error.
-
Won't work either, also requires you to click send.
Hm this is a tricky one...
-
Okay then the only other thing I could imagine how to do is to follow the idea julie-mids posted here.
It's already a while ago when I red this but was able to find it again.
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1006&SearchTerms=slight
have a look for this section:
''''''Well I have cheated slightly but I've come up with a ...
-
Ah okay. Then I think you have no other choice but...
Put a button to your form and select edit code to write your own code:
First thing you need to do is use the thisXDocument.SaveAs() method to temporary save your infopath form to C:\temp on your local disc for example.
After that you can use then the MailMessage object to achive what you ...