- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 09:36 AM
Hello Team,
I need a script for below form, when I select type of additional margin field as 'services' and status of invoicing field as 'billed', calculated add margin field need not to be $0.00, it should be greater than $0.00. it should not allow users to submit form and alert need to be shown. please help me with this.
Thank you in advance,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 12:47 PM
Thanks you for response Pradeep, I did it on the Client Script , it is working now
function onSubmit() {
//Type appropriate comment here, and begin script below
var am = g_form.getValue('type_of_additional_margin');
var ambs = g_form.getValue('additional_margin_billing_status');
var cmd = g_form.getValue('cm_dollars');
alert(am);
alert(ambs);
alert(cmd);
if (am == 'services'&& am == 'parts' && ambs == 'Billed_to_be_billed' && cmd == 'USD;0.00')
{
return false;
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 11:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 12:47 PM
Thanks you for response Pradeep, I did it on the Client Script , it is working now
function onSubmit() {
//Type appropriate comment here, and begin script below
var am = g_form.getValue('type_of_additional_margin');
var ambs = g_form.getValue('additional_margin_billing_status');
var cmd = g_form.getValue('cm_dollars');
alert(am);
alert(ambs);
alert(cmd);
if (am == 'services'&& am == 'parts' && ambs == 'Billed_to_be_billed' && cmd == 'USD;0.00')
{
return false;
}
}