-
Hi,
Take XDocument instead of thisXDocument.
-
Hi,
By setting a rule on the button you can close the form.
1. Go to button properties.
2. Click on Rules.
3. Click Add and then click Add Action.
4. Select close the form in the Action drop down.
Or you can use the following code line to close the form.This should be placed in the button click event.
thisXDocument.View.Window.Close(true);
-
Hi,
By setting the expression box width and height to ‘auto', you can avoid the extra space that is taking expression box. If you set the size like this, it will occupy the space how much it is needed.
-
Hi,
Open the form in design mode and verify the font for a specific field by placing the cursor on that field. You have changed the font but may be forgotten to save the form. To change the font of all the fields just hold ctrl+A then change the font according to your requirement.
-
Hi,
Can you provide the schema of the data source and filter what you are using.
-
Hi,
Use the following code lines to get the site name. Note: This code works if the url is in the form of //" target=_blank>http://<servername>/<sitename>/.... Ex: http://server3/test/test1/Forms/template.xsn We will get the value ‘test' if we use the following code lines.
string url = ...
-
Hi,
How you are getting the values in the code. I think you are using selectSingleNode("xpath") method. Instead use selectNodes("xpath"). So that you will get all the filtered values. Set these values to a repeating field in main data source and in the drop down properties select ‘look up values in the form's source' ...
-
Hello and welcome to the forums,
If you use this value in a text box then it will give the first result only.
So use this filter in a drop down field to get all the occurrences of that specific filter.
-
Hi,
Contact selector control will automatically add ";" to separate the names if you select more than one name. But it will store only the name without ";" in the form. But while showing it will display with ";". Can you give more details how you are checking the names?
-
Hi,
I think your radio button is binded to the field out of repeating section. Make sure that the radio button field is in the repeating section in the data source. And use the following code in the field on after change.
[InfoPathEventHandler(MatchPath = "/my:myFields/my:group3/my:group4/my:field7", EventType = ...