-
On your submit button or onSaveRequest event you could include this code:
XDocument.DOM.selectSingleNode( ''XPath/To/sensitiveNode'' ).text = '''';
You could also look into User Roles to determine who is able to see what sections of your form. I hope this helps, I'm not exactly sure of your situation.
---------------
Matt Faus
InfoPath Dev Texas
-
No problem, glad you got things working. I'll talk to the team about a HowTo concerning namespaces. There are several already on the web and the W3C has a great tutorial regarding this matter. However, it is not specific to InfoPath.
http://www.w3schools.com/xml/xml_namespaces.asp
---------------
Matt Faus
InfoPath Dev Texas
-
Good job on resolving your problem! To get the e-mail addresses from your form you can use a line of code like this:
thisXDocument.selectSingleNode( ''XPath/To/Email/Node'' ).text;
After you get all the e-mail addresses you can concatentate them together in the oEmail.To line. Make sure to seperate with a ; .
What's wrong with editing the ...
-
Hm, this is starting to sound like a bug. Thanks for the steps for reproduction, I'll try to look into it a little more.
Are you just trying to determine if this is a bug or do you have some application in your form? If you are trying to only display the first record returned from the database try putting your IP controls in a layout table ...
-
What's wrong with this code?
function XDocument::OnLoad(eventObj)
{
If XDocument.IsNew Then
Dim TicketNumber, HiddenText
TicketNumber = Sum(HiddenText) + 1
End If
}
Error in Script.js expected ';' in Line 26(which is the If line).
Thanks!
Lisa Spencer
Programmer/Office Specialist
-
It is capitalized and I still get the error.
Can you explain the code, please?
Thanks,
Lisa Spencer
Programmer/Office Specialist
-
Ok, I resolved the last problem!
The different titles are the names of the buttons.
One more precision, I don't know how to link the field in which i entered the email adresses.
Indeed, I want to send email to all adresses entered in the form.
In : oEmail.To = ''mail adress'' I don't know how set the field reference, the code needs a valid ...
-
Does your book cover the SP1 and SP2? As a newbie I have been advised to ask.
Thanks
Tony
-
Hi Matt - thanks for the help, it worked.
I did notice that line of code you mention, but I did not connect the ''Vehicles'' string in the code with name of the secondary data source. Also, the XDocument.GetDOM(...) only seems to work for secondary data sources. I tried it with ''Main'' and it returned null. To get the data source for the loaded ...
-
Hi there,
I have a form that has a data field that holds sensitive data. This data needs to be input onto the form in order that a printed version can be kept in a manual filing system.
However I don't want this particulardata field being kept on the form which is saved on sharepoint when submitted.
Obviously I could just manually delete the ...