Text Review Widget Drafts
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 save drafts to Titan Submissions. This option is useful if you have a long text to review. You will not lose any changes that you have already made. You can also use it to save your progress if you’ve made some changes and need input from others on the remaining edits.
The text review widget is not available by default. Please contact Titan Support for more information.
How to Video
Coming soon!
How to Guide
The Debug Mode is enabled for this example.
Project settings > Tools > Debug Mode.
Prerequisites:
1. Configure the text review widget with data from one of the following sources:
2. Add static variables, for instance:
Firstly, you must store the draft in Salesforce, and then you can load it to the webpage.
Store the draft in Salesforce
- Add a button element to the canvas and click the On-Click Action icon.
- Click the + icon next to the Start node to open the Add Node screen.
- On the System action tab, click the Submissions option and then click the Next button.
- Click the Store radio button. The Create radio button is selected by default.
- Use the drop-down list to select Field as the option to store.
- Use the drop-down list to select the Text Review/Draft field and click the Next button.
- Use the drop-down list to select the location to store the submission ID. The submission ID is the variable needed when you load the submission. It will not be able to load if this variable is not correct.
- Additionally, use the drop-down list to select the location to store the submission JSON.
- The data from the submission is saved to a JSON file that can be saved to Salesforce.
- Change the tag field if necessary and click the Insert button. The Submission node is added to the On Click Action screen.
- Click the + icon next to the Submissions node to open the Add Node screen.
- Click the Salesforce Action option and then click the Next button.
- Click the Salesforce Integration button.
- Select the Push option and click the Create New button.
- Use the drop-down lists to select the object in Salesforce and the action. In this example, the following are used:
- Contact
- Update
- Under Condition, configure a condition. In this example, a specific contact is referenced.
- Use the drop-down list to map the element (in this case, the submission variable) to the Salesforce field (in this case, a newly created “Short description” field on the Contact object).
- Click the Apply button. The Salesforce action is added.
- Use the drop-down list to select the integration action and click the Next button.
- If necessary, change the tag and click the Insert button. The Salesforce Action node is added to the On Click Action screen.
- Click the Apply button.
Load the draft from Salesforce
- Remember to Save the project.
- Add a button element to the canvas and click the On Click Action icon.
- Click the + icon next to the Start node to open the Add Node screen.
- Click the Salesforce Action option and then click the Next button.
- Click the Salesforce Integration button.
- Click the Create New button.
- Use the drop-down lists to select the object in Salesforce and the trigger to execute the pull. In this example, the following are used:
- Contact
- User interaction
- Under Condition, configure a condition. In this example, a specific contact is referenced.
- Use the drop-down list to map the element (in this case, the submission variable) to the Salesforce field (in this case, the “Short description” field on the Contact object).
- These must be the same values as you mapped for the Submission Store Salesforce action.
- Click the Apply button. The Salesforce action is added.
- Click the Close button on the Salesforce Integration screen.
- Use the drop-down list to select the integration action and click the Next button.
- If necessary, change the tag and click the Insert button. The Salesforce Action node is added to the On Click Action screen.
- Click the + icon next to the After Finish option on the Salesforce Action node to open the Add Node screen.
- On the System action tab, click the Submissions option and then click the Next button.
- Select the Load radio button.
- Use the drop-down lists to select the Field option and then the Submission ID variable you used in the Store action.
- Use the drop-down list to select the current project as the project ID.
- Use the What would you like to load? drop-down to select the Field option and then select the Text Review/Draft field to store.
- Click the Next button.
- If necessary, change the tag and click the Insert button. The Salesforce Action node is added to the On Click Action screen.
- Click the Apply button.
- Save and Preview the Project.
- Click the Compare Salesforce Content button. The changed text is displayed in the text review widget.
- Accept or revert some changes and click the Save Draft button. The draft is saved to Submissions.
- Refresh the webpage and click the Load Draft button. The draft is displayed in the text review widget.