This features provide the ability to show/enable fields/actions based on a boolean expression. Depending on the condition type it will be executed real time or on the server side. All condition options support MyTokens
Please note that all server side conditions will also put the value between quotation marks so the following expression might break:
"SomeValue" = "[SomeToken] something else"
The Condition option runs on server side, is C# code and can contains tokens (default tokens or custom tokens). Based on the result of this expression the action will be either executed or ignored.
In other words, "Show Conditionally" applies from the server side, it supports C# syntax. It's not real time. It evaluates on form load and on button clicks. But you have the power of everything that's on the server, including My Tokens.
Please note that if "Show Conditionally" returns false then the field value will not be saved in the reports.
Enable Conditionally option applies from the server side, it supports C# syntax. It's not real time. It evaluates on form load and on button clicks. But you have the power of everything that's on the server, including My Tokens.
Fields - Bind Expressions
[FieldId] from your form. In this option you can display the field depending on other fields from your form.
Please note that if the "Show" condition returns false then the field value will not be saved in the reports.
[User:UserId] == 2The field will be displayed if the
UserId = 2(default token)
[HasRole:MyRole|true]The field will be displayed if the user has the role "MyRole". The HasRole token requires MyTokens
- having a text box SomeText:
[SomeText] == "Some Value"
- having a check box CheckboxFieldId :
[CheckboxFieldId] == true
Using complex expressions
[AgreedToTerms] && [Signature] == [Name]
[AgreedToTerms] && ([Signature] == [Name] || [SignLaterAtYourOffice])