The Content Editor in Appforms allows custom CSS, JavaScript, and HTML to be integrated for form-specific requirements beyond default options.
Working with Content Editor
Create a form, drag and drop a Content Editor as shown below.
(Figure 1)
(Figure 2)
Types of Content Editor
Users can select Content Types from general properties based on their requirements.
(Figure 3)
1. Content Type – CSS
(Figure4)
Example: – If the user has the requirement to set CheckBox control to toggle switch. Drag and drop checkbox control and Content Editor to a form.
(Figure 5)
(Figure 6)
(Figure 7)
(Figure 8)
(Figure 9)
(Figure 10)
Example: -If the user has a requirement to set the Grey checkbox for English & Malayalam and the default checkbox for Tamil & Hindi. User can call the Class from CSS content type to Custom style property of that particular control that needs to be a Grey checkbox. CSS of the Grey check box is shown below (Figures 11, 12, 13).
(Figure 11)
(Figure 12)
(Figure 13)
(Figure 14)
(Figure 15)
(Figure 16)
2. Content Type – Script
(Figure 17)
Example: – If the user has the requirement to set copy to clipboard of the text entered in TextBox using button control. Drag & drop ‘TextBox’ control, ‘Button’ control, and ‘Content Editor’ to a form.
(Figure 18)
(Figure 20)
(Figure 21)
(Figure 22)
(Figure 23)
3. Content Type – HTML
(Figure 24)
Example: – If a user has requirements to display a website in Appforms. Drag and drop ‘Content editor’ to a form. Set HTML by selecting the Content Type as HTML (Figure 25) and enter HTML code (Figure 26).
(Figure 25)
(Figure 26)
(Figure 27)
Content Editor Properties
Here’s the basic list of properties that can be used from rules.
Style.Width – for selecting and setting width from/to content editor control
Style.Height – for selecting and setting height from/to content editor control
Style.Margin – for selecting and setting margin from/to content editor control
Style.BoxShadow – for selecting and setting box shadow from/to content editor control
Style.Visibility – for selecting and setting visibility from/to content editor control
CSS – for selecting and setting CSS from/to content editor control
HTML – for selecting and setting HTML from/to content editor control
JS – for selecting and setting Java script from/to content editor control
Here’s the list of available properties in Content Editor from Designer.
Control Name: Content Editor
Group: Standard
S.no | Property name | Data type | Description |
General | |||
1 | Content Type | String | Set the content type of the control. |
2 | Content | String | Set the contents of the controls. |
3 | Auto Height | Integer | Enable/Disable auto height. |
Style | |||
5 | Width | String | Sets the suggested width or thickness of the control. |
6 | Height | String | Sets the suggested height of the control. |
7 | Margin | String | Sets the edge or outer margin to the control. |
8 | Padding | String | Sets the padding of the control( left, top, right, bottom) |
9 | Box Shadow | String | Show box shadow values(Horizontal shadow, vertical shadow, blur shadow , color) |
10 | Visible | Boolean | Sets the visibility of the control while rendering. |
Content Editor Control will contain one Quick action menu (Control).