Adding rich text 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 Advanced Rich Text.
Select Advanced Rich Text to create an RTF field along with additional configuration options. For example, you can select the RTF toolbar options that 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 Advanced 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.
- 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 related to only character fields without any RTF enabled.
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 specify a form with all user details in the Menu Name column, you can select the fields representing the following data:
- User name
- Device ID
- User email
- Company name
In such a scenario, the @mention in the PWA screens displays the information as shown:
The displayed order of the information is the same as the order in which they are in the RTF Label column.
- 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: