
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 08:00 AM
Hello all, I am stuck on how to solve this problem and after much searching, have been unable to find a solution, so I'm hoping someone here can help.
We have a catalog item that captures several pieces of information which are then used by the assignment team to structure the body of an email that is then sent out. The assignment group, in this case, does not have a full ITIL license, so we are working on a custom task table without a working variable formatter.
We've modified the generated task form to include an HTML field and are using a business rule to show the correct email template based on the value of another custom field that is populated in the workflow from a variable. There is a business rule that is running to display the correct email template in the HTML field based on the selection in another field.
All of that is working as expected, however, I cannot seem to get values from other variables into the HTML template. I think I'm running into an issue with javascript and HTML not wanting to play nice, but am truly at a loss as to what else to try. I've attached an image of the section of the task form that holds the HTML field and two additional fields that are being populated from the workflow.
Any help is greatly appreciated!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 10:06 AM
Hi Vikky - thanks for your time on this. This does look like it will work to get the variable values into the HTML field, but I"m running into trouble when attempting to preserve the table layouts. Any advice on how to keep the visuals? For instance, my existing HTML code defines text alignment and table layouts but when I attempt to enter that into the BR script I am getting an error:
I'm assuming there is some other way to code HTML within JavaScript like this, but have not been able to find the correct method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 08:12 AM
Hi,
Kindly try to render the variables like this ${u_response_reply_here}.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 08:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 09:41 AM
Hi,
Can you try this into your BR:
var html_text = current.variables.<Variable Name>;
current.<HTML Field name> = "<p>"+html_text+"</p>";

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 10:06 AM
Hi Vikky - thanks for your time on this. This does look like it will work to get the variable values into the HTML field, but I"m running into trouble when attempting to preserve the table layouts. Any advice on how to keep the visuals? For instance, my existing HTML code defines text alignment and table layouts but when I attempt to enter that into the BR script I am getting an error:
I'm assuming there is some other way to code HTML within JavaScript like this, but have not been able to find the correct method.