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

Question

Question

Forms - How to add conditional HTML into the On Event Completion Page

asked on March 18

When a customer submits a form that requires payment and chooses the type of Credit Card, I want to route them to the payment page. We can not take payment without first generating the payment URL, with a workflow activity, so we re-route the user to another process after submission to continue making the payment.

So I put the instructions in a Rich Text field and used that variable in the On Event Completion. The field is set to ignore the data if they do not choose Credit Card so that it will not show up.

And I am switching to the HTML view before inserting the token to let the system know that this is HTML.

However it does 2 things wrong. It puts the HTML in as text rather than treating it as a language.

And it removes the dataset information from the string, which I need to pass variables.

Here is my Rich Text field configuration

If the instructions were pure text it would work well, but I need HTML to generate a hyperlink and pass over variables.

0 0

Answer

SELECTED ANSWER
replied on March 18

Hi Chad.  I thought your question was interesting so I tried something that may (or may not) work for you.  Rather than use a Rich Text field just build the link from regular variables but conditionally hide or show it on the completion page by passing a variable into a style.  I'm sure you can figure out how to use a formula to change the style variable to "none" or "inline".

It's a bit of a hack but it seemed to do the job.

 

5 0
replied on March 18

This is genius! I owe you a drink at Empower!

0 0
replied on March 19

Glad to help.  It was a fun challenge.  I'm sure that your posts have solved plenty of my problems in the past.  Alas, no Empower for me this year.  Enjoy!

1 0

Replies

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

Sign in to reply to this post.