Expand my Community achievements bar.

Adobe Livecycle workbench - Check box mandatory issues

Avatar

Former Community Member

Hi All,

I am using below Adobe Livecycle workbench for devoloping the PDF forms.

Adobe Digital Enterprise Platform

Document Services - Workbench 10.0.1

Version: 10.0.1.20111108.1.309370

We have below requrement where there are 8-9 options and User has to choose one option to make form submittion successful.

So  we are making that 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 is getting executed. We have tested this by adding some 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 something with those options above code is also executed and tested with sampel app.alert().

On Submit button of FORM the mandatory = "error"; is not working and even if we do not select any required check boxes form still get submitted.

We have done such things in lots of other form but hot able to do for this form and with this check boxes.

Let me know if you have any solutions for same.

Thanks in advance,

Sudhakar

2 Replies

Avatar

Level 4

Can you please forward me the working copy of yours?

regards,

Rajesh

Avatar

Former Community Member

Hello Rajesh,

I am working with business partner to know the process if I can share the working form copy with you or not.

Till mean time can you please let me know some trial steps which I need to re-visit and see if issue can resolves.

Please provide me any your pas experiance work around which you have tried to fix such issues and I can re-use that.

Thanks in advance.

Regards,

Sudhakar