--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/Zf80HxSK3dkJ.
For more options, visit https://groups.google.com/groups/opt_out.
Please use gist or pastebin to share code snippets. Its not readable otherwise.
On Wed, Mar 6, 2013 at 12:15 PM, Syed Qadeer <sdqad...@gmail.com> wrote:
hello,
i am writing the custom client side scripting , earlier i thought that i could use the jquery.
but this isnt the case.
i am trying to add a field called "HOME NUMBER".... field name : "home_number"
the user must enter the home number , if he selects the another field which is checkbox called , "i have a home number". field_name : "select_home"
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.
any help with this guys.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/Zf80HxSK3dkJ.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/BtZTzmzsz7UJ.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/w65VMCfeDhoJ.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/OJNcmCidLiUJ.
Use "custom_on_submit" instead of "on_submit"
On 06-Mar-2013, at 4:49 PM, Syed Qadeer wrote:
just need 1 more help over here ...
i am trying to run a condition during the save for the Employee.
https://gist.github.com/anonymous/5098651
and i am calling the "cur_frm.cscript.on_submit = function(doc)"
but this is not getting executed....--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/LFeC4Y7w-JMJ.