Mobile Form Expression Requirements and Restrictions
Follow these requirements when you define a mobile form expression:
|
Requirement |
Guidance |
|---|---|
|
Reference an element property |
Reference at least one element property, such as |
|
Keep structural properties static |
Don't define expressions for Changing these properties at runtime can cause the client form and synchronized server data to disagree. To present different structures conditionally, create separate elements and control visibility with the |
|
Return the expected data type |
Return a value for Return a string for Return an of option objects for For
Note:
Returning a different data type can result in invalid or unexpected form behavior. |
|
Use valid JavaScript identifiers |
Element names and custom property names can contain letters, numbers, underscores, and dollar signs. A name cannot begin with a number. For example, use |
|
Return consistent results |
The same input values should always produce the same result. Base the result only on referenced values and return it synchronously. You can use methods such as
Note:
Don't use window, document, timers, or network functions because these browser APIs are not supported as expression dependencies. |