Text Review Widget with Data from Affected Elements

Business Background

The text review widget simplifies version control and text revisions, saving time and reducing errors by clearly showing what’s changed between the two versions. Users can quickly view, accept, or revert edits, ensuring that only approved changes are incorporated before in-line editing begins. This streamlined approach keeps teams aligned on the most current content, enabling efficient decision-making and better collaboration. Ultimately, it enhances productivity, improves content accuracy, and supports agile workflows, making it a powerful tool for businesses, prioritizing precision and efficiency in document management.

Titan Solution

Use the text review widget to review, accept, or revert edits to text. A new draft can be saved, and the number of edits will be displayed.

Note:

The text review widget is not available by default. Please contact Titan Support for more information.

How to Video

Coming soon!

How to Guide

Note:

The Debug Mode is enabled for this example.

Project settings > Tools > Debug Mode.

Configure the widget

You can compare the contents of different input fields.

  1. Click the icon to open the list of elements.
  2. Under Input, drag-and-drop two text input fields to the canvas.
    • In this example, they are named as follows:
      • txa Old Textarea field
      • txa New Textarea field
  3. Add the different versions of the text to the Default value fields. In this example, we put the text as a default value for the fields to simplify the demonstration.
    • Alternatively, add different variable values or paste the text in the text input fields.
  4. Under the Widget option, scroll down and drag-and-drop the Text Review widget to the canvas.
Input fields
Input fields
  1. Add a button element to the canvas and click the On Click Action icon.
Text Review widget
Text Review widget
  1. Click the + icon next to the Start node to open the Add Node screen.
  2. Click the Affected Elements option and then click the Next button. The Add Node/Affected Elements screen opens.
Add Node screen
Add Node screen
  1. Click the Text Review/Old checkbox.
  2. Use the drop-down list to select the “Set value from” option.
  3. Use the drop-down list to select the txa Old Textarea field option and click the Apply button. “Set value from txa Old Textarea” is added.
Add Node/Affected Elements
Add Node/Affected Elements
  1. Deselect the Text Review/Old checkbox and click the Text Review/New checkbox.
  2. Use the drop-down list to select the “Set value from” option.
  3. Use the drop-down list to select the txa New Textarea field option and click the Apply button.
Add Node/Affected Elements
Add Node/Affected Elements
  1. Click the Next button.
Add Node/Affected Elements
Add Node/Affected Elements
  1. If necessary, change the tag and click the Insert button. The Affected Element node is added to the On Click Action screen.
  2. Click the Apply button.
On Click Action screen
On Click Action screen
  1. Save and Preview the Project.
  2. Click the Compare Content button.
Example
Example

The Salesforce fields are compared, and the changes are indicated.

  • The old text is in red and crossed out.
  • The new text is in green and underlined.
Example
Example

Each change can be accepted or reverted individually by clicking on a change and then clicking the required button.

Example
Example

Alternatively, clicking the widget’s default buttons can accept or revert all changes.

Example
Example

You can view the changes by clicking the Debug button on the project preview page.

Example
Example

The old, new, and draft text and the number of changes are shown.

Debug screen
Debug screen

When all the changes are accepted and/or reverted, the [Text Review]/Value will be updated.

Debug screen
Debug screen

After all the changes are accepted and/or reverted, you can add additional text to the text review widget. By adding a button with a Salesforce on-click integration action, you can push this change to Salesforce to update the field. Make sure to map the [Text Review]/Value in the Salesforce Push.

Example
Example

Hidden Title

Need more help?