Adding RTF fields in Progressive Web Applications
To add RTF fields or advanced RTF fields in Progressive Web Applications
- In Developer Studio, create a progressive view.
- In Palette, in the Data Fields section, drag Character into the view.
- Select the character field.
- On the Properties pane, perform one of the following steps:
- To create a simple rich text field, in the Display > Display Type list, select Rich Text.
This option creates an RTF field in PWA but does not provide you any additional configuration options. - To create an advanced rich text field in the Display > Display Type list, select Advance Rich Text.
Select Advance Rich Text to create an RTF field for additional options to configure the RTF field. For example, you can decide which RTF toolbar options are displayed in the application along with other features described in the following section.
In the select Display > Display as text list, select True to display the rich text in view-only mode.
- To create a simple rich text field, in the Display > Display Type list, select Rich Text.
- Save the changes.
To perform additional configurations to advanced RTF fields in Progressive Web Applications
Optionally, you can add additional properties to the advanced RTF (ARTF) fields after you select Advance Rich Text in Developer Studio to do the following:
- Add a toggle that enables application users to switch the RTF field to show plain text.
- Enable application users to use @mention in the RTF fields.
- Show or hide advanced RTF palette options.
- On the Properties pane, in the Display > Switch to Text View list, select True.
This enables a toggle button on the rich text field where application users can view the content as plain text. This option appears only after you set Display Type to Advance Rich Text. - Enable @mention to the rich text field.
- On the Properties panel, under the Display property group, for the Enable Menu Hotkeys property, select the True value.
- In the Value column for the Menu Hotkeys property, click the ellipsis button.
The Menu Hotkeys dialog box is displayed. Click Add, and then perform the following steps:
Property
Step
Hotkey
Click the first row in this column, and then select a character from the list.
When application users type this character, the @mention list appears.Menu Name
Click the first row in this column, and then click the ellipsis button
to select a menu from the Menu Selector dialog box.
This is the menu from which information for the @mention list if obtained.Active Link
Click the first row in this column, and then click the ellipsis button
to select an active link from the Active Link Selector dialog box.
The active link that you attach to a hotkey must be an existing one and associated with the current form.
Labels
Leave this column empty. This column is not relevant for RTF fields.
Auto Complete Key Stroke #
Enter an integer value.
This is the number of characters application users have to enter before the @mention list appears.RTF Labels
Click the first row in this column, and then click the ellipsis button
to select the fields from which the @mention list obtains data.
For example, if you have specified the form with all user details in the Menu Name column, in the RTF Labels, you can select the fields for user name, device ID, user email, and company name as shown in the following example:
If you do not specify anything, Developer Studio uses the first four available fields in the order specified in the form and then displays it in the @mention list in the application.- Click OK.
- Show only relevant RTF field options.
- On the Properties panel, beside the Display > Additional RTF Toolbar Configuration property, click the field.
Enter the list of options you want the RTF field to display with the following syntax:
Option1, Option2 | Option3, Option4, Option5
The pipe character (|) specifies that the options after it are in a new group. The syntax is case sensitive.
- Save the changes.
To validate the RTF field or advanced RTF field in PWA
- In a browser, log in to PWA.
<serverName>:8080/arsys/pwa/#/login - Change the URL to include the Progressive View form that you created in Developer Studio.
<serverName>:8080/arsys/pwa/#/forms/<serverName>/<formName>/<viewName> - (Optional) If you want to display more changes you made in Developer Studio, you must sync the cache in Mid Tier.
- Log in to Mid Tier configuration.
<serverName>:8080/arsys/shared/config/config.jsp - Click Sync Cache.
- Refresh the browser displaying the progressive view form.
- Log in to Mid Tier configuration.
- As an application user, you can perform the following tasks in the RTF editor:
- Add content that uses standard HTML markup, this RTF editor renders the content without any loss of formatting.
- Edit the existing rich text content.
- Copy content from Microsoft Word, Microsoft Outlook, or HTML while retaining most of the supported formatting.
You can view the following options in the RTF editor and advanced RTF editor: