Search the Community

Showing results for tags 'submission'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • General Questions
    • Caspio JavaScript Solutions
    • Tables, Views and Relationships
    • Import/Export and DataHub
    • DataPages
    • Deployment
    • Security, Authentications, Roles, SAML
    • Styles and Localizations
    • Parameters
    • API and Integration
    • Calculations and aggregations
    • User JavaScript and CSS Discussions

Found 5 results

  1. Does anyone know the adjustment for this code to work? I'm trying to copy the value of a Virtual field (drop down) to a regular text field, on a button's click. Here's the code I'm working with: <div style="text-align: center;"> <input class= "cb_custom_btn" type="submit" onclick="myfunction()" value="Submit" /> <script> function myfunction() { var virtualval = document.getElementByID("cbParamVirtual4").value; document.getElementByID("InsertRecordMyFieldName").value = virtualval; } </script> </div> I'd also tried the ElementsByName with [0] for cascading values but that doesn't work either.. What's weird is I've used code similar to this for the same purpose with no problem so I must be missing some minute detail. Any help would be greatly appreciated.
  2. Hello, Is there a way to copy an image field from one table to another in a Submission form? I'm using Cascading Text to grab values from fields from a table (based on an ID identifier for the record) and put them into the fields for another table on a Submission form but cannot get the image field to do this. Some kind of workaround would be really great.
  3. I am able to get the below working on a Submission form with the element set to text box. Is there a way to do the same thing, but with the autocomplete element chosen? So far I have not been able to get it to work when I change to element type from text box to autocomplete. It does not add the entries together
  4. I have a details page with text fields that allows the user to submit data. After submission the destination is the same datapage so the user can keep editing the details page if they wish. After they click submit I'd like a progress bar/status bar that takes over the screen and says something like "Saving...." or "Processing......" Just like this js example does: http://forums.caspio.com/index.php/topic/4314-js-auto-submit-a-datapage/ Also, if a user makes changes to the details page and tries to close the window before submitting, I 'd like a message to save "You have made changes to this form that you have not submitted/saved. Are you sure you want to close this window." Thanks in advance for the help.
  5. I am having trouble with a submission form getting a total amount. I can get the javascript to work if I enter values in standard fields. It works fine if I use custom values in a dropdown. Where the code does not work is when I use a cascading dropdown. The form is an internal billing request form. There is a price field which is based on the product selected in a previous form. When the select the product, the price goes into the cascading dropdown and fills in the form properly. After price is a field for additional charges and following that a field for discount. I have the following javascript in the footer of the submission form. <SCRIPT LANGUAGE="JavaScript"> function summation() { var Cost = document.getElementById("InsertRecordPrice").value; var Additional_Charge = document.getElementById("InsertRecordAdditional").value; var Disc = document.getElementById("InsertRecordDiscount").value; var Total_Invoice = parseFloat(Cost) + parseFloat(Additional_Charge) + parseFloat(Disc); document.getElementById("InsertRecordTotal").value = Total_Invoice; } document.getElementById("caspioform").onsubmit=summation; </SCRIPT> There's obviously something I'm not getting about the difference between entering a value and using a cascading dropdown. Technically, it doesn't even need to be a cascading dropdown if there is another way to get a default value from a table. If anyone can see where my error is, please let me know. I even created a stand alone form with only the 5 necessary fields just for experimentation and I'm stumped. Thanks in advance.