Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2013 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5097290 to your computer and use it in GitHub Desktop.
Save anonymous/5097290 to your computer and use it in GitHub Desktop.
cur_frm.cscript.select_home = function(doc, cdt, cdn) {
if(doc.select_home == 1)
{
doc.home_number.style.display = "block";
}
else
{
doc.home_number.style.display = "none";
}
refresh_field('home_number');
}
cur_frm.cscript.select_home; // i just tried to run this trigger but i dont know how to run
//this trigger from here....
//i tried something like this as well
$('input[name="home_number"]').val(); // this returns me undefined , whereas if i go and
//execute this on console i get the value for this same command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment