Jump to content


Caspio Ninja
  • Posts

  • Joined

  • Last visited

Posts posted by Barbara

  1. I would add two lines of code to the script in order to display the variable contents while running. This is one way of debugging.

    <SCRIPT language="JavaScript">
    function Headline()
    var between = document.getElementById("InsertRecordNewsTitle").value;
    var prehtml = "<font size=4><strong>";
    var posthtml = "</strong></font>";
    var bold = prehtml + between + posthtml;

    Replace this code in your page (place the code in an HTML block at the bottom of the DataPage elements) and run the form and see what you get for those variables? I also removed the parentheses where you call the function.

    Maybe this helps.



  2. I think in your case the IP Address Autovalue is the best solution but again as mentioned before in a company that IPs are shared only one person can vote.

    Another solution is to write a Java Script which creates a generic cookie on user's computer and delete the cookie after certain time such as two hours. So user can not submit the form again in two hours but there is always workarounds for user such as clearing the browser cache! As you know cookie is browser specific so user also can switch browser from Firefox to IE, etc. and submit the form again.

    There is no absolute solution for this but different ways as explained above to make it harder for user to re-submit the form.


  3. Hey Walt,

    I think you are trying to restrict the number of submissions from a single user. You can ask for user email address and make this field as a unique field in your table however user can put in another email address and submit so another solution is to validate user email by having them to check in the email account and click on verification link to have their post goes live. Here is an article about this http://howto.caspio.com/tech-tips/tech- ... dress.html

    If you want to restrict the submission based on user's IP address, add a text field in your table and for example call it IP and make is a unique field. Then in the submission form include this IP field and in the configure fields screen choose the form element as AutoValue and User IP Address. More information about form elements is available at http://help.caspio.com/questions/30/Form+Elements. However note that in this case if the IP Address is shared in a company between users then only one user in that company network can submit the form.

    Hope this helps.


  4. Hi Mark,

    It would be helpful if I could see your page online and replicate what you are experiencing. Can you create a test page and deploy the Caspio DataPage using embed model and direct me how to test it? You can tell me what is the expected behavior and what is the actual behavior that I experience from my side.



  5. Hi Mark,

    Here is a code sample to autosubmit a form.

    <script> function f_submit() { document.getElementById("caspioform").submit(); } window.onload = f_submit; </script>

    Cheers, Barbara

  6. Hi John,

    Try the following in the Capture Web Form footer:

    function concatenate()


    var Catagory = document.getElementById(\"InsertRecordCatagory\").value;

    var Business_Name = document.getElementById(\"InsertRecordBusiness_Name\").value;

    var Description = document.getElementById(\"InsertRecordDescription\").value;

    var Details = document.getElementById(\"InsertRecordDetails\").value;

    var Keyword = Business_Name+Catagory+Description+Details;

    document.getElementById(\"InsertRecordKeyword\").value = Keyword;



    Notice that after InsertRecord prefix you need to have your corresponding field names.

    For the Update form use the following code:

    function concatenate()


    var Catagory = document.getElementById(\"EditRecordCatagory\").value;

    var Business_Name = document.getElementById(\"EditRecordBusiness_Name\").value;

    var Description = document.getElementById(\"EditRecordDescription\").value;

    var Details = document.getElementById(\"EditRecordDetails\").value;

    var Keyword = Business_Name+Catagory+Description+Details;

    document.getElementById(\"EditRecordKeyword\").value = Keyword;



    The only difference between these two JS is that in Web Form fields are referenced by InsertRecord prefix and in Update form ther are referenced by EditRecord prefix.

    Good Luck!


  7. Yes there is a way to make the file editable. In the DataPage wizard where you select the form element as File for that field you will see two tabs for field options, one is Display Options and the other one is Edit Options where you can choose upload new file.


  8. Hello,

    Update Web Form basically is used when you would like to let users to update their profile as it just pullup one record based on users login.

    So if you would like to let an administrator to have some rights on changing users' data you could create a Search and Report DataPage and let the fields be editable by selecting the fields' form elements as text box rather than display only in the \"Configure Details Page Fields\" wizard screen. This way admin could pullup the report and edit the data.

    To limit users from inserting large files you could limit the file size in the Web Form wizard where you are configuring fields.


  9. I believe the reason is that in the Update report to create the radio button options the values in the tables will be checked and since the value is still empty, a blank radio button will appear.

    Maybe you should have another option for your radio button options as No Answer to match the blank values.


  10. Ben, the dropdown box has already this feature so when user type in a letter, it automatically focus on the options start with that letter. As I know, Caspio has another textbox like an autofill textbox as user enter letters it narrows options and autocomplete the option but your web server should be able to run ASP and PHP.


  • Create New...