Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Johnny last won the day on July 8 2020

Johnny had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Johnny's Achievements


Newbie (1/14)



  1. Hi @CoopperBackpack Hope you are well. Here is the code that would let you to achieve the result. You should insert it in your HTML block. And I will explain the code below. Please be aware, that I used Virtual Field for this example with name "cbParamVirtual1" as a Calculated Value, since in Caspio virtual field has syntax [@cbParamVirtual1]. You can put there your own field name if needed instead of "cbParamVirtual1" <div class="message"></div> <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { document.querySelector('input[id*="cbParamVirtual1"]').addEventListener("change", myFunction); function myFunction(event) { let virField = event.target.value; document.querySelector('.message').innerHTML = "your text should be here " + virField; document.removeEventListener('DataPageReady', myFunction); } }); </script> This is the part where you insert text, added by JS code:: <div class="message"></div> The JS code has place, where you should enter the text you want to have in HTML block. Here is this part, replace "your text should be here " for the one you need. document.querySelector('.message').innerHTML = "your text should be here " + virField; Hope it helps. Regards, Johnny
  2. Hi @aquintanilla Let me try to help you out. Lets say, you have a site and a page www.example.com/home_page.html on it. This page has a DataPage (Submission Form) that you have deployed. From here, we have two options to solve your task: 1) While making settings to your DataPage, the very last step will be "Web Form Wizard - Destination and Messaging". You will see "Same Page" in "Destination Options" field. Please open it and select Go to a DataPage. Then, you will be able to select the DataPage you need to open. 2) Lets say now, that you second page on your site with the address www.example.com/Second_Page.html . And you want to place your second DataPage here. In order to redirect to another HTML page - simply select "Go to a new Page" and put the address here. After that - you will be redirected to another page that you will enter. By the way, you should enter it like "http://" or "https://". Hope it helps, Regards, John
  3. Hello! @lbw27 It seems like that you should try to disable HTML editor in Datapage where you use the code. The main idea is to disable it. It is enabled by default for Header/Footer and HTML blocks, but for some HTML/CSS/JS code you should disable it to prevent from such behavior when code can not be perceived in a correct way. Before turning off HTML editor, I strongly recommend you to copy and paste the code that is already written somewhere. Because if you have your code written in HTML editor like this (using HTML editor) Once you disable HTML editor you will get this: (pay attention to the code itself it will encode quite many characters) So to prevent it - save your code where the characters are not encoded yet. After that , the option that disables the editor is in the Advanced tab of the header/footer and HTML block. If Advanced tab is not displayed, you should go to the second screen of the DataPage wizard and enable Advanced Options. Hope it helps.
  • Create New...