Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:3500:0800:0850 [2023/04/05 05:40] – sean | docs:3500:0800:0850 [2025/06/12 04:00] (current) – Change to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag>}} | + | {{tag>Programmers_Reference Client_Side_Plugins Modify_Fields}} |
| [< | [< | ||
| ====== Modifying default presentation of individual fields on forms ====== | ====== Modifying default presentation of individual fields on forms ====== | ||
| Line 5: | Line 5: | ||
| To modify the default presentation of an individual field on an object form you need to go to the presentation properties of the corresponding attribute and click on the " | To modify the default presentation of an individual field on an object form you need to go to the presentation properties of the corresponding attribute and click on the " | ||
| - | As explained in the " | + | As explained in the " |
| The form controller asks every individual field on the form to prepare its markup and the collection of widgets. Then it assembles the result into the final markup and widget collection of the form. The script for each indivisual field is executed just before it is given to the form controller, so that the script has a chance to modify the markup or widget configuration. | The form controller asks every individual field on the form to prepare its markup and the collection of widgets. Then it assembles the result into the final markup and widget collection of the form. The script for each indivisual field is executed just before it is given to the form controller, so that the script has a chance to modify the markup or widget configuration. | ||
| Line 11: | Line 11: | ||
| There are three objects exposed to the script: | There are three objects exposed to the script: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| You can modify modify any of these object. For example, if you want to hide the field you can write the following script: | You can modify modify any of these object. For example, if you want to hide the field you can write the following script: | ||
| Line 39: | Line 39: | ||
| The following table lists all different field types and the corresponding Kendo UI widgets. | The following table lists all different field types and the corresponding Kendo UI widgets. | ||
| - | |**Aware IM attribute type**|**Kendo UI widget**|** | + | |**AwareIM |
| |Plain Text (no choices, 1 line)|None|AwareApp_TextField| | |Plain Text (no choices, 1 line)|None|AwareApp_TextField| | ||
| |Plain Text (no choices, several lines)|None|AwareApp_TextAreaField| | |Plain Text (no choices, several lines)|None|AwareApp_TextAreaField| | ||