Jump to content

Trigger Event on Fields Change


Recommended Posts

hi folks,

im trying to implement an event whereby when the user changes a dropdown to a value say "sold", it will trigger an event to congratulate the user and allow him to input some fields on a new page. any javascript event i can use to implement such kind of event? thks

Link to comment
Share on other sites

Is it an update page or details page? If yes you can have a script in the footer of the page as follow:
 

<script>

document.getElementById('caspioform').onsubmit = function (){

if ( document.getElementById('EditRecordFIELDNAME').value = "Sold"){

alert("Congratulations you can now proceed");

window.location.href="URL OF THE PAGE THEY CAN ADD MORE INFO";

}

}

</script>

FIELDNAME  should be replaced with dropdown field name

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