rayhildebrant Posted October 7, 2021 Share Posted October 7, 2021 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. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 7, 2021 Share Posted October 7, 2021 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? Quote Link to comment Share on other sites More sharing options...
rayhildebrant Posted October 7, 2021 Author Share Posted October 7, 2021 uniGUI 1.90.0 build 1511 using RAD Studio 10.3 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 7, 2021 Share Posted October 7, 2021 1 hour ago, rayhildebrant said: uniGUI 1.90.0 build 1511 using RAD Studio 10.3 Hello Professional Version? Please adjust your email address Quote Link to comment Share on other sites More sharing options...
rayhildebrant Posted October 7, 2021 Author Share Posted October 7, 2021 Done! yes, Professional version. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2021 Share Posted October 8, 2021 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? Quote Link to comment Share on other sites More sharing options...
rayhildebrant Posted October 8, 2021 Author Share Posted October 8, 2021 Hi Sherzod, I decided to don't use TUniHTMLFrame. I found other solution, I will use UniSession.addJS , that works perfectly. tks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2021 Share Posted October 8, 2021 Hi, Okay. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.