Jump to content

How to Auto Submit a single record update form when the dropdown value changes


Recommended Posts

Hi @PotatoMato 

I continued to read the article you suggested, and with a little determination and experimenting was able to get it to work.

As it was a Single Record Update Page, I had to use the words EditRecord in front of the field name in the JavaScript to make it work

 

<script type="text/javascript">
  
document.getElementsByName('EditRecordLastSelectedCompanyID')[0].onchange = function() {myFunction()};

function myFunction() {
// submit the form if an value is selected
setTimeout('document.forms["caspioform"].submit()',1000);  

}

 </script>

2023-05-12_16-46-58.jpg

ckddd.jpg

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.

Guest
Reply to this topic...

×   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.

Loading...
×
×
  • Create New...