Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Text field REQUIRED based on list
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Text field REQUIRED based on list

 Post Reply Post Reply
Author
ShineyS View Drop Down
New Member
New Member


Joined: 12 Apr 2018
Location: Aus
Points: 4
Post Options Post Options   Quote ShineyS Quote  Post ReplyReply Direct Link To This Post Topic: Text field REQUIRED based on list
    Posted: 18 Jul 2018 at 2:03am
I have a dropdown list with 4 items. If either of two of the four items are chosen, so either #1 or #3, I want a text field to become Required/complusory.

So,
In the text field I have this custom calc script:

if
(this.getField("text-field-name").value=="item1-dropdown")
{
event.target.required=true;
}
else
{event.target.required=false}

How do I add Item #3 also?

Thanks
Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.031 seconds.