Announcement

Collapse
No announcement yet.

Display/Hide combo box when check box is ticked/unticked

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cherry
    replied
    Hi blakesale,

    The demo PDF document could be download from this link: http://exchange.foxitsoftware.cn/Cherry/Demo.pdf
    Please download it then open with Foxit PhantomPDF->go under "FORM" menu->right-click on Checkbox to open "Properties"->"Actions"->Double-click on "Run a JavaScript" then you see the JS script as following:
    var f = this.getField("Check Box0");
    var c = this.getField("Combo Box0");
    if (f.isBoxChecked(0))
    {c.display = display.hidden;}
    else
    {c.display = display.visible;};

    Leave a comment:


  • cherry
    replied
    Hi blakesale,

    It should be done with JS script. I'll further check with PhantomPDF team and see if a demo could be provided. Could you please kindly let me know your email address so I could email you the demo? Thank you.

    Leave a comment:


  • Display/Hide combo box when check box is ticked/unticked

    Hello,

    I am currently evaluating the product and was wondering if it possible to display/hide a combo box when check box is ticked/unticked. I have managed to display the box on a mouse action however i only want it to be displayed if they have checked it.

    Thanks
Working...
X