Sorry people but i am not very good at writing java script to be perfectly honest however the CEO of my company gave me a task to do that i just can’t seem to figure out and i need your help.
I have a simple sales order in pdf format that i need to have a script written for. i have a check box called software and a text field called software setup that needs it.
what i need is when a person puts a check in the check box, it will then enter an amount in the text field of $200 and when unchecked it goes away. it seems simple but only if you understand java script which i am trying to learn but just started. below is what i came up with, but it doesn’t work. PLEASE let me know what you think or if you can help me out. Sorry to be such a newbie but ya gotta learn somewhere.
//checkbox equals checked or unchecked
//software setup fee equals 200 or 0
if Var cb = this.getField(“software”).value;
if Var ms = this.getField(“software Setup”).value;
Function checkedbox()
{
If(cb == “Yes”)
{
ms = 200;
}
Else if (ch == “No”)
{
ms = 0;
}