-
Hi,
Add a string field (field2) to the schema with the default value to 0. Add a text field to the schema and UI. Add a conditional formatting to this text field as if the field2 is not equal to 1 then hide the control. Now add the following code in the on context change event.
InfoPathEventHandler(EventType = ...
-
Hi,
I think you are trying to display some dialogue box. Dialogue box does not support in browser enabled form. Can you provide the details of the validation you are using?
-
Hi,
If there are multiple roles for the current user, infopath always checks the roles and assigns the first role as current user role. You can customize this using the code.
-
Hi,
You have to add the condition 'if DATEPICKED is <= today() and DATEPICKED is not blank' in form open rules.
-
Hi,
Use the following code lines to get the library name. Note: This code works if the url is in the form of //" target=_blank>http://<servername>/<libraryname>/.... Ex: http://server3/test1/Forms/template.xsn. You can get the value ‘test1' by using the below c# code lines.
string url = ...
-
Hi,
The rules will execute in the order they have placed. So in rule1 you are calculating the item no. So after finishing the first rule the Item no is some 10001 or above.
The in second rule it is checking whether the Item no is larger than 100 or not which is true. So again this is also submitting the form. Because of this the form is ...
-
Hi,
To my knowledge, we cannot reference the sections.
-
Hi,
When the condition is true then only the formatting will be applied.
Once try by placing that condition in an expression box and check whether the condition is true or false.
-
Hi and welcome to the forums,
Add a drop down field in the form and follow the below steps.
1. Open the drop down properties by double clicking on the control.
2. Select ‘Look up values from an external data source..' option button.
3. Select the data base source in the Data source drop down.
4. Click on button which is after the ...
-
Hi,
Use the following script code to submit the attachment to the document library.
attachmentNode = thisXDocument.DOM.selectSingleNode("xpath of the attachment control").text;
var data = DecodeAttachment(attachmentNode.text); //decode the attachment text and send that in to data variable.
try
{
// create a xmlhttp object
var ...