Adobe Livecycle workbench - Check box mandatory issues


hi all,

 

i using below adobe livecycle workbench devoloping pdf forms.

 

adobe digital enterprise platform

document services - workbench 10.0.1

version: 10.0.1.20111108.1.309370

 

we have below requrement there 8-9 options , user has choose 1 option make form submittion successful.

so  making thing in form :: docready event.

 

------------------------------------------------------------------------------------------ --------------------------------------------------------------------------

form::docready - (javascript, client)

 

  this.resolvenode("page1.sectionc.invstgyfqnttrdng").mandatory = "error";

  this.resolvenode("page1.sectionc.invstgyastalloc").mandatory = "error";

  this.resolvenode("page1.sectionc.invstgydlrcstavg").mandatory = "error";

  this.resolvenode("page1.sectionc.invstgyoth").mandatory = "error";

  this.resolvenode("page1.sectionc.invstgybyhold").mandatory = "error";

  this.resolvenode("page1.sectionc.invstgyrglwdrl").mandatory = "error";

  this.resolvenode("page1.sectionc.invstgyhdg").mandatory = "error";

 

this code getting executed. have tested adding app.alert();

 

------------------------------------------------------------------------------------------ --------------------------------------------------------------------------

 

form.page1.sectionc.invstgyastalloc::change - (javascript, client)

 

if (this.resolvenode("page1.topofpage.vehicletype").rawvalue == "esignature" && this.resolvenode("invstgyastalloc").rawvalue == "false" || this.resolvenode("invstgyastalloc").rawvalue == "" && this.resolvenode("invstgybyhold").rawvalue == "false" || this.resolvenode("invstgybyhold").rawvalue == "" && this.resolvenode("invstgydlrcstavg").rawvalue == "false" || this.resolvenode("invstgydlrcstavg").rawvalue == "" && this.resolvenode("invstgyfqnttrdng").rawvalue == "false" || this.resolvenode("invstgyfqnttrdng").rawvalue == "" && this.resolvenode("invstgyoth").rawvalue == "false" || this.resolvenode("invstgyoth").rawvalue == "" && this.resolvenode("invstgybyhold").rawvalue == "false" || this.resolvenode("invstgyhdg").rawvalue == "" && this.resolvenode("invstgyrglwdrl").rawvalue == "false" || this.resolvenode("invstgyrglwdrl").rawvalue == "") {

  this.resolvenode("invstgyfqnttrdng").mandatory = "error";

  this.resolvenode("page1.sectionc.invstgyastalloc").mandatory = "error";

  this.resolvenode("invstgydlrcstavg").mandatory = "error";

  this.resolvenode("invstgyoth").mandatory = "error";

  this.resolvenode("invstgybyhold").mandatory = "error";

  this.resolvenode("invstgyrglwdrl").mandatory = "error";

  this.resolvenode("invstgyhdg").mandatory = "error";

  this.resolvenode("page1.sectionc.invstrategyoptionhidden").mandatory = "error";

}

 

 

if (this.resolvenode("invstgydlrcstavg").rawvalue == "true" || this.resolvenode("invstgyfqnttrdng").rawvalue == "true" || this.resolvenode("invstgyoth").rawvalue == "true" || this.resolvenode("invstgybyhold").rawvalue == "true" || this.resolvenode("invstgyrglwdrl").rawvalue == "true" || this.resolvenode("invstgyastalloc").rawvalue == "true" || this.resolvenode("invstgyhdg").rawvalue == "true" && this.resolvenode("page1.topofpage.vehicletype").rawvalue == "esignature") {

  this.resolvenode("invstgyfqnttrdng").mandatory = "disabled";

  this.resolvenode("invstgyastalloc").mandatory = "disabled";

  this.resolvenode("invstgydlrcstavg").mandatory = "disabled";

  this.resolvenode("invstgyoth").mandatory = "disabled";

  this.resolvenode("invstgybyhold").mandatory = "disabled";

  this.resolvenode("invstgyrglwdrl").mandatory = "disabled";

  this.resolvenode("invstgyhdg").mandatory = "disabled";

  this.resolvenode("page1.sectionc.invstrategyoptionhidden").mandatory = "disabled";

}

 

------------------------------------------------------------------------------------------ --------------------------------------------------------------------------

 

once user change/click on options above code executed , tested sampel app.alert().

 

on submit button of form mandatory = "error"; not working , if not select required check boxes form still submitted.

 

we have done such things in lots of other form hot able form , check boxes.

 

let me know if have solutions same.

 

 

thanks in advance,

sudhakar

can please forward me working copy of yours?

 

regards,

rajesh



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support