Jump to content

TUniHTMLFrame, How to update HTML text


rayhildebrant

Recommended Posts

Hello!

When a set the  HTML property value (in the design time)  with a script, the script runs successfully:


        <script type="text/javascript">
          window.amplData = {
            email: 'teste@email.com.br', 
             name: 'username', 
            survey: '60ef1fc0199741000e74244d',// This is your survey identifier
            callback: function(data){}
          }

But, I need to set the script variables email and name in runtime with the user logger data.

I tried to concatenate the values in HTML, text but the script does't work anymore.

How may I do that ?

tks.

Link to comment
Share on other sites

39 minutes ago, rayhildebrant said:

Hello!

When a set the  HTML property value (in the design time)  with a script, the script runs successfully:


        <script type="text/javascript">
          window.amplData = {
            email: 'teste@email.com.br', 
             name: 'username', 
            survey: '60ef1fc0199741000e74244d',// This is your survey identifier
            callback: function(data){}
          }

But, I need to set the script variables email and name in runtime with the user logger data.

I tried to concatenate the values in HTML, text but the script does't work anymore.

How may I do that ?

tks.

Hello

Which build and version are you using?

Link to comment
Share on other sites

7 hours ago, rayhildebrant said:

But, I need to set the script variables email and name in runtime with the user logger data.

I tried to concatenate the values in HTML, text but the script does't work anymore.

How may I do that ?

Hello,

Do you have a simple testcase to check?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...