Extract Data From Another Source

  • Profile Image
    Asked on September 21, 2016 at 07:54 AM

    Hello I would like to have the form extract the price of my products from an external source in order to protect my prices from being copied by anyone.

    How can they copy prices now? The user can simply view the source of the form 


    and find the prices which are


      <li class="form-line" data-type="control_dropdown" id="id_2">
      <label class="form-label form-label-left form-label-auto" id="label_2" for="input_2"> Product </label>
      <div id="cid_2" class="form-input jf-required">
      <select class="form-dropdown" style="width:150px" id="input_2" name="q2_product">
      <option calcValue="0" value=""> </option>
      <option calcValue="100" value="Product 1"> Product 1 </option>
      <option calcValue="200" value="Product 2"> Product 2 </option>
      <option calcValue="300" value="Product 3"> Product 3 </option>

    If I could have the prices in an external spreadsheet alocated in my server it would be great. Any other solution great as well.

    A second question: is there a way to protect the form so no one can view the source code and thus extract confidential info from it?

    Thank you


  • Profile Image
    Answered on September 21, 2016 at 11:55 AM


    I suggest you get your form source code and encrypt it so it is not human readable. This one might be of help http://www.smartgb.com/free_encrypthtml.php?do=crypt.

    Or, you can implement a custom function in your form source code that disables the right click which is the common way of inspecting the page source. You can try this one http://stackoverflow.com/questions/737022/how-do-i-disable-right-click-on-my-web-page.

    I believe the above suggestions answers your second question as well.

    Let us know if you have more questions.

  • Profile Image
    Answered on September 24, 2016 at 03:54 AM

    I will try both thank you and let you know.


    At the same time,  is there a possibility to put the confidential data in another page that is linked to the form?


    Thank you

  • Profile Image
    Answered on September 24, 2016 at 11:17 AM

    Yes, you can do pretty much everything when you use your form source code. You can also save the values in your database and fetch them using custom scripts.

    Just to clarify, calculation values are user defined values that work on the form level, that makes them visible in the form source code. If you want to protect it from being changed, you need to apply custom scripts in your form like I've previously said. Unfortunately, JotForm does not offer source code encryption.