-
I don't see the option to remove code?>>>
-
I follow up now Jimmy. However, I don't see the option to delete the code to reset it so that my first line is there. And yes, I have a field1. I wanted to first test it with minimal changes.
Thanks a lot for your help on this. I will let you know how it goes.
-
Just copy the part in single quotes starting after the comma and going up to the end parenthesis. In my form, the full line looks like this:
var Namespaces = 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" ...
-
Yeah, it looks like you've removed part of that setProperty line. Please back up the contents of that file in a TXT file or something, go to Form Options and remove the code, then re-add the event handler to your button. That should restore that line to its correct state, and then you can paste in the code you backed up, with the ...
-
[quote user="ZaiZai"]I have changed the top 3 lines to this.
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://www.w3.org/2001/XMLSchema-instance"');
var Namespaces = ...
-
now it is for this line
if(field1.text.length > 0)
says that an object is required.
I literally created a new button this time.
-
it tells me that
object required for this line.
var field1 = XDocument.DOM.selectSingleNode("/my:myFields/my:field1");
-
Hello! I'm new to Infopath/Sharepoint Workflows and trying to come up with the best way to accomplish this.
Basically what I want is a form with required fields. However, I want to have 2 options:
Save will save the form, regardless if all fields are filled out. This is for people who want to save as they go or save in ...
-
Just so that I understand you right...
I have changed the top 3 lines to this.
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://www.w3.org/2001/XMLSchema-instance"');
var Namespaces = ...
-
I think I'm on the home stretch of my form. I'm at the Stacking Options part of the Form. Which is luckily the last part. Basically the Stacking Options will be the whole TOC Summary rearranged per floor. For instance you can either build the building all on one floor or stack it up higher. The reason for ...