Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
matt_65

Member
Registered:
Posts: 32
Reply with quote  #1 
I am struggling to implement a test for if a checkbox is ticked in a client script.  I have in the on submit event
return foo();


I then have a client function:

function foo()
{
if(eworkGetField("chkBox1")==0)
alert("Not checked");
}


I have also tried

var chk=eworkGetField("chkBox1")
if(chk==0){...}


I also read on this forum that you can use a Boolean test so I tried

if(eworkGetField("chkBox1")==false){...}


which simply caused the form to hang and not submit but also not error, the form showed it was loading.

I am sure it is something so easy and that I am overlooking something so would greatly appreciate a gentle push in the right direction.

I am running Metastorm BPM 9 SR3.

Thanks,

Matt
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #2 
I successfully do something like this using:

if (getField("AML_Clear_Client","") == "false")
...

eworkGetField is no longer official, but I believe they still support it due to V7 migrators.  I do not know if that's part of your problem.  I always use the second argument as empty in either Getfield argument.  I don't know if that may be part of your problem.

However, I do this explicitly in my "On form submission" code script.  I could never get a call to an independent client script to work on the save event as I liked (though I do use them elsewhere).

0
matt_65

Member
Registered:
Posts: 32
Reply with quote  #3 
Thanks heaps BMellert, changing it to getField and "false" worked a treat.  Thank you for your help with this issue.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!