You are viewing limited content. For full access, please sign in.

Question

Question

Send HTML Token via Invoke Business Process

asked on September 9, 2020

Hi,

 

I have been trying to pass a token (which is HTML formatted) via the Invoke Business Process action in WF into a HTML field on my form.  The issue I'm having is when it renders the form, the text is shown with all the HTML code included.  How can I pass this HTML token into my form from WF and have it render correctly?

Thanks,

Anthony

0 0

Replies

replied on September 9, 2020

Do you need the token itself to format the HTML, or just have some HTML on your page that holds some values that you are going to pass to it?

In the first case, you could try passing the HTML to a variable in your business process, then using JavaScript to append it to a parent node in the DOM:

$(document).ready(function() {
    const parentNode = $('selector for the node you will attach your html to here');
    const newElement = document.createElement('div');
    newElement.innerHTML = $('selector for the field which holds your html here').val();
    parentNode.append(newElement);
});

If you just need to pass values to static HTML, you can set variables in your HTML like this:

<div class="text-wrapper">
    <div class="top-text">
        {/dataset/employeeName}
    </div>
    <div class="top-text">
        {/dataset/employeeId}
    </div>
</div>

 

0 0
replied on September 9, 2020 Show version history

Thanks for the reply.  The Token is a multi value token and is a Web Access URL 

My field is actually a Rich Text field which is read only.  I can see that there is a hyperlink option on the Rich Text format bar.  Is it possible to pass the tokens into the rich text field and have them formatted as hyperlinks?

Anthony

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.