Difference between revisions of "JavaScript functions v1.0"
Jump to navigation
Jump to search
old>Admin |
old>Admin |
||
Line 11: | Line 11: | ||
=== Toggling fields === | === Toggling fields === | ||
Fields can be shown or hidden calling the fieldname | |||
* hideField(name) | * hideField(name) | ||
* showField(name) | * showField(name) | ||
Example | |||
hideField("USER") | |||
Hiding and showing fields can be made dependent on classes in the TempusServaPage and/or items current status. | |||
* hideFieldForPageClass(name) | * hideFieldForPageClass(name) | ||
* showFieldForPageClass(name) | * showFieldForPageClass(name) | ||
* hideFieldForStatusId(name) | * hideFieldForStatusId(name) | ||
* showFieldForStatusId(name) | * showFieldForStatusId(name) | ||
* hideFieldForPageClassAndStatusId(fieldName,className,statusId) | |||
*showFieldForPageClassAndStatusId(fieldName,className,statusId) | |||
Note: This is NOT intended for denying access to data -it will only be hidden in the frontend, but is still accessible to savvy users. | |||
== Other sources == | == Other sources == |
Revision as of 15:12, 6 January 2021
Builtin functions
Handling form values
Display values are handled using standard getter and setters
- getValue(name)
- setValue(name,value)
For explicitly getting a value (or ID) use
- getDecimal(name)
Toggling fields
Fields can be shown or hidden calling the fieldname
- hideField(name)
- showField(name)
Example
hideField("USER")
Hiding and showing fields can be made dependent on classes in the TempusServaPage and/or items current status.
- hideFieldForPageClass(name)
- showFieldForPageClass(name)
- hideFieldForStatusId(name)
- showFieldForStatusId(name)
- hideFieldForPageClassAndStatusId(fieldName,className,statusId)
- showFieldForPageClassAndStatusId(fieldName,className,statusId)
Note: This is NOT intended for denying access to data -it will only be hidden in the frontend, but is still accessible to savvy users.