Jump to content
  • 0

How can I copy a dropdown value?



10 answers to this question

Recommended Posts

  • 0

You can add a virtual field http://howto.caspio.com/datapages/form-elements/html-blocks.html to your page and get the value of the dropdown in that. To do so add an HTML block below these dropdown and virtual field in your submission page and paste this code in there:

function myValue(){

You need to replace cbParamVirtual1 with the virtual field ID and InsertRecordname with your dropdown ID.

Link to comment
Share on other sites

  • 0

I have been trying to get this to work, but I keep getting errors. I am trying to copy a Virtual field to a dropdown list. Any help would be appreciated.

<script> function myValue(){ document.getElementById("Part_Number").value=document.getElementById("Virtual1").value; } document.getElementById("Virtual1").onchange=myValue; </script> 

cbParamVirtual1 = Virtual1 InsertRecordname = Part_Number - This is the Dropdown List ID.

Link to comment
Share on other sites

  • 0

Hi @barrantj,

As of July 12, 2018, Caspio introduced new features which you can find here: https://howto.caspio.com/release-notes/caspio-bridge-13-0/

This release includes a new feature, Calculated Values in Submission Forms.  This allows you to generate calculations which you can use to get the value of your dropdown. You can use Virtual field and set it as Calculated Value. In the formula section, insert the field name of your dropdown. 


For more information about Calculated Values, you can check these videos:


I hope this helps!

Link to comment
Share on other sites

  • 0

Hi Just to add to the previous comment, you may also check this link about calculated value: https://howto.caspio.com/datapages/datapage-components/calculated-values/

*Just an update and FYI : You can now add the Calculated Value form element to Update Forms and Details Pages to generate dynamic calculations as users interact with your forms. Previously, this feature was only available in Submission Forms.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...