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

Question

Question

Trying to pass a variable into hyperlink Custom HTML on BP Form

asked on February 22, 2024

I make this on the past but now the link does not accept variables.

¿Did someting change?

I got the entire URL on a field then I tell the Custom HTML by code to use the value on the field, cause yo cannot use variables on fix URL.

But the Code just send the value empty.

Example:

<a href="{/dataset/URLPDFConvenio}" target="_blank"><b><span style="font-size: 12px;">Document</span></b></a>

0 0

Replies

replied on February 22, 2024 Show version history

Is the "URLPDFConvenio" field being populated from an earlier task or Workflow or during the same task? 

Because those {/dataset/VARIABLE} functions to populate values into fields and HTML are processed when the form is loaded, and not updated when updates happen to the fields, so if the "URLPDFConvenio" field is being populated or changing during this task, it isn't being updated into the HTML.

0 0
replied on February 22, 2024

Hi Matthew,

 

To discard that situation, i test it with a default value on field URL.

And still dont pass the value to the Hyperlink.

So i think the syntax on code got to be the issue.

0 0
replied on February 22, 2024

A default value in the field is still being populated into the field at form load, after the {/dataset/VARIABLE} values have been updated in the custom HTML elements. 

1 0
replied on February 22, 2024

I think you are right.

That's the issue.

Thanks for the help Matthew.

0 0
replied on February 22, 2024

You're welcome.

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

Sign in to reply to this post.