-
Hello,
I have a dropdownlist bounnd to a secondary datasource in my form. Can anyone explain me how I can set a specific value as a default value for example the 5th value from the datasource.
Thank you for any help in this issue
-
Hi Drojas
What is the security settings that u have given ur form?
Change it to domain or Full Trust depending on ur needs.
Some information regarding the different security settings are given below
•Restricted- Corresponds to Internet Explorer#%92s Restricted sites zone (high security).The form cannot access resources that are external to the ...
-
Hi Shiva,
Thank for your Reply... I have tried out with your code... its fine while process with one value... after I should have the control in the html file.
But in my process... i have dynamic values...the webservice will return more value... How can I add control dynamically in the html.
Regards,
Vasanth.
-
Ah, that makes more sense. Thanks for the help; it works beautifully!
-
Hi,
Assuming ur datasource has the following structure,
Root
Group
Repeating Group
Use the following code
XDocument.DOM.selectSingleNode(''/root/group/repeatinggroup[''+1+'']/fieldname'').nodeTypedValue=.....
Regards,
Abhishek
-
You're on the right track, try this instead:
xdXDocument:GetDOM(''Sites - Hierarchical Data Source'')/Sites/Site/@value[../@displayName = current()]
The problem with your statement is that the test that you specified tests to see if there is a node present that matches the query, and returns the first row for which this is true. Your query is ...
-
Just to be difficult, suppose I have a secondary datasource like this:
<sites>
<site value=''BAT'' displayName=''Bathurst''/>
<site value=''ECH'' displayName=''Echuca''/>
</sites>
I have a DDL for site and when the user selects their site I want to autofill a hidden field with that site's 3 letter abbreviation.
The ...
-
Hi Sagiw and welcome to our forum!
InfoPath comes with 25 out-of-box samples that include lots of JS. To access the script.js files for them, start InfoPath and choose Sample Forms (under Form Categories). Select one of the forms and click Design This Form in the left taskpane. For example, Service Request. Now, click File->Extract Form Files ...
-
Does anyone have an answer to this?
-
Hello, how are you?
I wanted to knoe how can I insert information do a text box field using JS?
Is it something like this?
XDocument.field1.value=''text'';
?
Thank you