Acrobat Pro XI Conditionally Required Fields

have developed a simple form in Acrobat Pro xi. Need an example of javescript and where it should be placed. Form has three fields named: SpouseName, SpouseDOB, SpouseGender. All three fields are set to Not Required. If an entry is made in SpouseName, want to set SpouseDOB and SpouseGender to required. The form has a submit button on it and I assume that the code should go on a action on the submit but not sure. Any type of simple example will be greatly appreciated!

Use this code as the custom validation script of SpouseName:
this.getField("SpouseDOB").required = (event.value!="");
this.getField("SpouseGender").required = (event.value!="");

Similar Messages

  • Not able to create conditional required fields at Tcode CJ20N Proj Systems

    Hello experts,
    I have a requirement to create a few custom fields under custom enhancement tab in CJ20N transaction, and depending on a particular value for one of the fields, another set of fields need to be set to required. (If FIELD1 = 'Y', FIELD2 & FIELD3 should be set to required)
    My approaches..
    1. Assign a screen group to FIELD2 and FIELD3. If FIELD1 = 'Y' then LOOP AT SCREEN, and set screen-required = 1 for that specific screen group.
    Problem with this approach is that, if I select FIELD1 = 'Y' (hit space or enter -> sy-ucomm = TOGGLE), the fields are successfully set to required. However, now if at this point I go and change value for FIELD1 = 'X' (hit space or enter), FIELD2 and FIELD3 still remain set to required, and keep requesting value.
    2. Do not set any fields to required. Instead set it to an information message in PAI, informing user that this field requires a value when FIELD1 = 'Y' on TOGGLE and SAVE.
    Problem with this approach is that even though during TOGGLE event user is provided with an informational message, if the user directly decides to SAVE (no change for TOGGLE event), in this case the same message is displayed, and the project screen itself is closed. I do not think it would be ideal for the user to see the entire project close on SAVE everytime they miss a conditionally required field.
    I am just not sure at this point how to handle this at SAVE so that I can still have the same control as I would when TOGGLE event is triggered.
    Experts please help if you have come across such a situation!!! Your insight would be greatly appreciated!
    Edited by: akkinair on Dec 16, 2011 1:25 AM

    Please find below the response.
    1. Assign a screen group to FIELD2 and FIELD3. If FIELD1 = 'Y' then LOOP AT SCREEN, and set screen-required = 1 for that specific screen group.
    Problem with this approach is that, if I select FIELD1 = 'Y' (hit space or enter -> sy-ucomm = TOGGLE), the fields are successfully set to required. However, now if at this point I go and change value for FIELD1 = 'X' (hit space or enter), FIELD2 and FIELD3 still remain set to required, and keep requesting value.
    --> When FIELD1 chnage used module with additon CHAIN-REQUEST and check its value if it is to be set to optional by using loop at screen and set screen-required =0.*_
    2. Do not set any fields to required. Instead set it to an information message in PAI, informing user that this field requires a value when FIELD1 = 'Y' on TOGGLE and SAVE.
    Problem with this approach is that even though during TOGGLE event user is provided with an informational message, if the user directly decides to SAVE (no change for TOGGLE event), in this case the same message is displayed, and the project screen itself is closed. I do not think it would be ideal for the user to see the entire project close on SAVE everytime they miss a conditionally required field.
    --> Can you please clarify it.
    Thanks
    Nabehet

  • Conditional Required Fields

    Is it possible to have conditional required fields. As in if a certain box is selected, certain fields will become required. Take a look at this example if this needs clarification. In this example, the left 3 text boxes are required. If I check the middle checkbox, can I make it so the 3 text fields in the middle now become required as well. Furthermore, if I check off the 3rd check box (rightmost one), can I make all of the text boxes as required fields. Thanks!

    Hope You have the code on the check box change event, which decides the need of required or not.
    if(this.rawValue =='1')
    TextField1.mandatory = "error";
    TextField2.mandatory = "error";
    TextField3.mandatory = "error";
    Gender.mandatory = "error";
    Gender.border.edge.color.value = "225,0,0";
    else{
    TextField1.mandatory = "disabled";
    TextField2.mandatory = "disabled";
    TextField3.mandatory = "disabled";
    Gender.mandatory = "disabled";
    Gender.border.edge.color.value = "0,0,0";
    If you have facing any problem send me ur form to [email protected] if possible, If need sample give me ur email id so that i can post the form.
    RAGHU.

  • Conditionally Required Fields

    Basics -
    Running LC ES 8.2 and Acrobat 9 Pro and using Acrobat for this form.
    Novice/Beginner in JavaScripting as a whole, especially as pertains to PDFs
    Situation -
    Trying  to set up a form wherein a field is required if one option from a combo  box is selected and to either be optional or removed otherwise.
    I've  been trying "if ... else" statements without any luck. The field  (AbortRchgSA/#8) is set as Visible and not required by default. The  combo box (Mode/#16) is a required field. My attempts have taken two  forms.
    Form 1:
    var f = this.getField("Mode").value;
    if (f = SA)
    {var g = this.getField("AbortRchgSA");
    g.required = true;}
    Form 2:
    if (this.Field.Mode.value == SA)
    this.getField(“AbortRchgSA”) = required;
    else
    this.removeField(“AbortRchgSA”);
    Any and all help is welcome.

    For the second script, rather than removing the field, you should hide it, since you may want it back. You're also using curly quotes, which will cause an error.
    Try something like the following as the combo box's custom Validate script:
    // Custom Validate script for combo box
    (function () {
        var f = getField("AbortRchgSA");
        f.value = f.defaultValue;
        if (event.value === "SA") {
           f.display = display.visible;
           f.required = true;
        } else {
            f.display = display.hidden;
            f.required = false;

  • Acrobat Pro 9.0 date fields

    hi, I am having trouble in date fields in a form I developed in Designer (Acrobat Pro 9.0).  I have two problems.  1.  I have a date field for DOB (Date of Birth).  When any dates are clicked or entered with a year of 1929 or earlier, Adobe converts it to 2029 and so on.  So I cannot enter in anyone over 80 years old.  Not good.  How do I fix this?  2.  When I get out of my Adobe Pro and check out my form myself I am able to use the cool feature where you click on the white part in between the arrows in a date drop down box and I can easily get to early 1900's years.  When I have distributed my form those users don't seem to have that feature.  The top of their date drop down box is blue.  how do I get theirs to work like mine?
    Thanks in advance!

    Post your problems in the forum for LiveCycle Designer.

  • Valid Acrobat Pro XI still requires activation after 30 days

    I already asked a similar question in a different sub-forum, but i was recommended to make a new thread here.
    The problem is this:
    We need to deploy Acrobat Pro XI to computers that are 100 offline. We used the Adobe Customization Wizard XI to make a customized install for Acrobat Pro XI. We entered the serial number and used the "Grant Offline Exception" button on a computer with Internet access, which worked fine. The ISX_SERIALNUMBER property is successfully added to the mst.
    Adobe Support has earlier told me that all that is needed for offline activation to work is to have the ISX_SERIALNUMBER set in the mst. Still, Acrobat complains after 30 days that it needs to be activated. Is there some other magic that the "Grant Offline Exception" button does to the installation package that i need to be aware of?
    The way the installation is run is:
    we run setup.exe
    setup.exe (i assume?) uses setup.ini
    setup.ini contains:
    [Startup]
    RequireOS=Windows XP
    RequireMSI=3.1
    RequireIE=7.0.0000.0
    Require64BitVC10RT=1
    CmdLine=/sl"1044" /sall /rs
    [Product]
    msi=AcroPro.msi
    vcrtMsi=vc_red.msi
    vcrtDir=VC10RT_x64
    Languages=1033;1044
    1033=English (United States)
    1044=Norwegian (Bokmal)
    CmdLine=TRANSFORMS="AcroPro.mst"
    [Windows XP]
    PlatformID=2
    MajorVersion=5
    MinorVersion=1
    ServicePackMajor=3
    [MSI Updater]
    Path=WindowsInstaller-KB893803-v2-x86.exe
    So the bottom line is that i would like to know if this way of running the installation is correct, and also exactly what the "Grant Offline Exception" button does.
    Thank you

    Thanks for replying.
    We are not ghosting the installation, it's a normal installation using the standard files from Adobe.
    The installation process is as i described above.
    I tried using the wizard again now, granting the offline exception with it, and saving it as an mst. According to point 4.2.7.1 in 4  Installation Workflows — Enterprise Administration Guide, this should occur: "The Wizard validates the serial number and saves the exception inside the MST."
    I can not for the life of me see any references in the mst that an offline exception exists. PRESERIALIZATIONFILEPATH is not mentioned in the property table or anywhere else in the mst either.
    All further help (if possible) will be much appreciated!

  • Conditionally required field

    I'm trying to make a field required if a specific combo box answer is chosen.  I looked at a recent post (http://forums.adobe.com/message/3617710#3617710) but wasn't able to figure out how to make it work.  Here's more info: the combo box name is "Reason for hire list".  One of the choices is "Project Related", which I gave an output value of "Project".  I'm trying to make the "Name of Special Project" field required if you choose "Project Related" in the "Reason for hire list" field.  I assumed that the code should be as follows for the "Special Project" field, based on that message I linked above, but it's not working:
    (function () {
        var f = getField("Reason for hire list");
        f.value = f.defaultValue;
        if (event.value === "Project") {
           f.display = display.visible;
           f.required = true;
        } else {
            f.display = display.hidden;
            f.required = false;
    I also tried the following, to no avail:
    (function () {
        var f = getField("Reason for hire list");
        f.value = f.defaultValue;
        if (event.value === "Project Related") {
           f.display = display.visible;
           f.required = true;
        } else {
            f.display = display.hidden;
            f.required = false;
    Could you help?  Thanks.

    In the "Special Project" field, in the Validate tab, in the Run custom validation script box.

  • Conditional Required Field

    I have two fields on a form, one which is optional, and one that should only become required if the optional field is populated by the user.  Is this s scripting project?

    "Project" is quite a stretch... It's basically a single line of code, to be used as the first field's custom validation script:
    this.getField("OtherField").required = (event.value!="");

  • Acrobat Pro has bitten the dust and I really, really need it - HELP!

    I'm hving some real 'issues' with Acrobat Professional nd I can't really pinpoint when they started. Adobe seems clueless. Everything works fine on my Intel iMac but the app now simply freezes on my MBP - literally freezes. All processes stop, no way to Force Quit. It opens fine - then if I try to do ANYTHING it freezes straight away. The only non-approved software I installed was the 'two finger click' keypad option available on the new 17" MBP - it worked fine, but, thinking it the culprit, I installed the 'old' trackpad configuration. No go.
    I've reinstalled Acrobat Pro from the original CS disk and let it update automatically and, when that didn't work, downloaded and installed all updates manually. Still the same problem.
    I just downloaded 7.07 Reader to see if that will at least open a document without freezing up (oh, if I double-click on a pdf document, as I had changed all from Preview to AcroPro long ago, it will open - and then everything freezes).
    I'm nearing the point of a complete re-init, and reinstall. Thank goodness I back-up regularly. This is only occurring on my main MBP - the 2GHz (why is the 2.16GHz not my 'main' machine? Too long an explanation) and it's driving me crazy. I've booted in Safe mode, I've run all diagnostics, Adobe just keeps saying 'Version Cue' and I've not run Version Cue since I first had trouble with it 5-6 months ago.
    If anyone has any ideas for fixes, I can make it through the weekend without taking any radical steps. I just want to get back to normal!

    Oddly enough, Acrobat Pro is working fine - with all updates, etc., on my Intel 20" iMac. There are those with iMacs posting on the Adobe board for whom AcroPro is not working but it seems as if the majority of users posting are MacBook (and MacBook Pro) users.
    I am truly, truly confused that if Security Update 2006-003 is the genuine and only culprit, why Pro is working on my iMac. One thing I have not tried on my iMac is using the Adobe PDF printer... on my MacBook Pro it will seem to print but the application from which I am printing will freeze just as Acrobat freezes and requires are hard reset.
    When trying to diagnose these problems, I make certain that there are no devices attached, etc., but on my iMac I have 8 USB devices connected to hubs, 6 FireWire devices chained and one in the remaining 'free' port - and that's the machine on which Acrobat Pro works! It's the MacBook Pros, in my case, that it simply freezes.
    I don't know where else I've made these observations (I've been posting all around, trying to find a solution that precludes uninstalling SU2006-03, as there are a number of holes patched that are now public and I really don't want to remain open to security vulnerabilities) but here's what I've observed trying to use Adobe Acrobat products with all Apple and Adobe updates and upgrades, including SU2006-03, on MacBook Pros (both 2GHz and 2.16GHz):
    * Acrobat Pro freezes and requires a hard reset both when the application is opened directly and when opened by double clicking on document (the document will open - but the application freezes: no damage to an open document on hard reset);
    * trying to print to Adobe's PDF printer will, after seeming to complete the printing process, cause the application from which you are printing to freeze and necessitate a hard reset
    * Acrobat Distiller works fine - if you can save as PostScript, you can process through Distiller;
    * Apple's 'built in' PDF functions work fine;
    * printing a PDF document (exporting) from InDesign works fine, and;
    * Adobe Acrobat Reader 7.07 works fine.
    If anyone has any observations that might be included to find if there is some oddball work-around (as Adobe has stated they will not support Acrobat Pro on Intel Macs and Apple seems to not be testing updates or upgrades on Acrobat Pro - and I don't blame Apple as testing unsupported applications would be a waste of time). I won't go off on my anti-Adobe tirade here - I really love the company's products but they are risking disenfranchising very large enterprise customers: if they wish to become a Windows only company they are on the right track but one would think that they would take a look at Quark to realize that tactic might lose more customers than box volume sales can reveal. Adobe's tech support has not reached the low, yet, as did Quarks, but bucking the trend toward Intel Macs is reminiscent of Quark's decision to withhold resources in OSX development. My Xpress update should arrive next week and the UB version later in the summer. I don't want to switch again but if InDesign 'breaks' and Adobe decides that they're not supporting it on the Intel Mac platform, I don't want to be left with nothing. And if the remainder of CS2 stops working? I suppose some people will switch to XP for a while? Look for other apps that may not have the full functionality yet get the job done? I don't know. But I'll formulate a plan. I learned my lesson about the insurance afforded by a good back-up policy long ago: I just never thought I'd be in a position of shipping software being unsupported (particularly with Adobe's 'commitment', early on, to Apple's switch to Intel).
    I'll stop my rant now. Sorry for the long message - this one has me worked up! Let everyone know of your experiences here, on the Adobe board, and particularly on the MacFixIt board at www.macfixit.com: you can email the problems you're having to [email protected]. There's an article now at MacFixit about problems with CS2 installation on Intel Macs. And they are a good source for tapping some of the best minds for workarounds.
    I'm just hoping this isn't just a taste of things to come from Adobe.
    2 MacBook Pro Intel Core Duos, 1 2.16GHz, 1 2.0GHz 2Gb RAM 100Gb 7200 RPM HD Mac OS X (10.4.6) 20" 2GHz Intel Core Duo iMac 2Gb RAM 250Gb, G4 Dual 1GHz PM & 12" 867MHz PB

  • Downloaded Acrobat Pro 7 from Adobe site, won't install, errors out, what do I do now?

    I had Acrobat Pro 7 on my old XP machine. I bought a new Win7 machine. Went to install Acrobat on it from the old CD, with original serial no. Wouldn't activate, said "activation server not available". Went to the Adobe site, that error page linked to a download of an .exe for Acrobat Pro 7 not requiring activation, providing password. So yeah, I thought . . . .Did the whole thing, but the install errors out, every time, and offers no workaround. So I am stuck.  Error popups attached. Any guidance appreciated. I bought the original program, I'm legit.
    The error messages are the usual opaque stuff, I have no idea how I would verify that I have access to a directory that the installer just now created on my hd . . . Why wouldn't I?
    I REALLY really need the Adobe pdf printer driver for all my apps, particularly Sibelius, PDF995 drops things . . . .

    OK, thanks both, yes I have 64-bit so there goes that reliable printer.
    HOWEVER, the URL that 2.Bill gave me is exactly where I downloaded their exe from, the one that *won't install. If you read my post, I am looking for how to make that installer work; I found the folder listed in both error messages, but neither of the referenced files are there, only a similarly named .dll.
    And when I go to delete the entire Acrobat 7 folder so I can start over (I did uninstall it after my install from disk that wouldn't activate), the system tells me I do NOT have access to delete it, I need permission from SYSTEM. But I am the only user on my new PC and as far as I know I have admin rights.
    I waded into the Security settings for the folder, but the system won't let me change them. This is . . . counterintuitive . . .
    I am out of my depth.
    Anyone else have any ideas?
    Thanks for listening,
    Davod

  • Is it possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?

    Hi,
    the subject says it all. I have downloaded the trail version to see if its possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?
    Basically, I will have to create a pdf form where users fill it and send it back to me. there will be required fields (the textbox and check box) that user need to fill before saving the editable pdf?
    Is it possible. if so, can someone kind enough to point to me right directions?
    Thanks in advance.

    Thanks for reply. What I am trying to achieve is to give an option for the user to download the pdf form and once the user tries to save the pdf, it validates with the required field. I managed to create the editable pdf with required fields option. I just need that validation to be done when user click on save file. How can I achieve this? thanks so much for your help.

  • Can I upload forms I created in Acrobat Pro (containing Javascript) add attachment fields to them?

    I am developing fillable forms for our company. We have the following requirements.
    1. Develop the forms in Acrobat Pro.
    2. They contain extensive JavaScript, including custom functionality to validate the fields on the form before saving.
    3. The forms must include some way to allow the users to attach files when requested.
    4. Each form will be sent out to multiple recipients.
    5. Recipients may not have Acrobat--only Reader.
    I have solved most of the problems, and I'm getting stuck on #3 (because of #5). Short of using LiveCycle Reader Extensions (which I do NOT have), I don't know how to get a Reader-extended fillable PDF to allow attachments. I want to know if FormsCentral allows it. I read the online help and tried a test form, but I don't see how to add an attachment field to it after it's uploaded--it appears to be in a "final" status that can only be sent out to recipients after that.
    Any help is appreciated. Thanks!

    Acrobat 8 Professional includes LiveCycle Designer 8, so if the form was created with LiveCycle Designer 8 or older, the yes should have the option to edit the form. Acrobat 8 Professional under the menu option 'Forms' will have an option to open the form in LiveCycle Designer. If the form was created with a newer version, there could be some issues with newer features not available in version 8.

  • I have been creating forms in InDesign and pulling into Acrobat XI Pro to do form fields. My client would like to fill in the PDF form, save under a different name locally on their device, and redistribute. The problem I have is that, sometimes, they want

    I have been creating forms in InDesign and pulling into Acrobat XI Pro to do form fields. My client would like to fill in the PDF form using Reader, save under a different name locally on their device, and redistribute. The problem I have is that, sometimes, they want to redistribute the form as Read Only. I know how to flatten the form on a mobile device, but uncertain how they can do that with a PC or Mac using Adobe Reader. I looked at FormsCentral thinking there might be a solution going that route, but don't believe there is. Any advice?

    FormsCentral won't help with flattening a form. You could set up the form in Acrobat so that the fields are set to read-only, using JavaScript. Not quite the same as flattening but it's the best Reader can do.
    Note that when Reader is used to e-sign a document, it gets flattened, but this won't be possible if you need to Reader-enable the form and under certain other conditions.

  • Creating an editable text field in Acrobat Pro 9.5

    I create editing tests for applicants to my company. Previously I used Word, but I want to these tests to be pdfs moving forward because when I use Word there are various ways the test takwers can cheat. For most of the sections of the tests I can use various Acrobat form fields, radio buttons, etc. But there is one section that is typically a 700-word text sample that the test taker is required to edit. Would I be able to insert this much text in a text field so that it is editable? I want to limit the test taker's ability to refomat the document, which is another reason I want these to be pdfs.
    I am using Acrobat Pro 9.5.
    I'd appreciate any suggestions from users.
    Thanks.
    dg

    You can enter as much text as you want into a text field. Just need to
    leave enough place for it on the page and make sure to set it as multi-line.
    Regarding limiting the ways the document can be edited: Are the test takers
    going to be using Reader or Acrobat? If the former, there's no problem.
    They can't do anything except fill in the files and save the file (if you
    enable that) or print it or submit it back to you.
    If they are using Acrobat, or have access to it, then you should password
    protect the file to prevent it from being edited in undesired ways.

  • Can I make certain fields conditionally required?

    I am TOTALLY new to acrobat- just to put that out there first. I am wondering in acrobat (NOT formscentral or indesign) how to make certain fields required based off the answer of the previous required field.
    I.E  first required field- "is this a single application?" if so, do NOT make the next few fields required
    "is this a joint application?" if so, make the next rew fields required.
    Can I get some help with this?
    Thanks!

    What is commonly done is a button is used to initiate the email, using a "Submit a Form" action and specifying the email address of the recipient. The submit will fail if any fields that are marked as required are blank. In your case, you need to set the required property of certain fields conditionally, based on the sate of the form, and this will require a bit of scripting. It's not overly complicated though and you can get some help here.
    The Acrobat help document is a good place to start, though it won't help with JavaScript programming. A good resource is AcrobatUsers.com where there are a number of tutorials and other resources available about forms.
    Be aware that submitting form by email is often less reliable than expected, for many different reasons. A more reliable and secure approach is to set up the form to submit to a web server, but this involves even more expertise as it involves server-side programming and interacting with a PDF form. Emailing may seem sufficient for your needs, but be aware of the alternatives.

Maybe you are looking for

  • Updated apps break links with dock icons (Mac OS)

    When apps are updated via the CC desktop app, they sometimes (not always) come down with a new name which causes the link in the dock to break. This would be a nuisance with one or two apps, but when a CC user has (like I do) a dozen icons in their d

  • Music skipping while playing

    Hey all. For some reason when I play my MP3's through iTunes they seem to be skipping, like a scratched CD almost. All the songs are ones I bought through iTunes so I know it's not that. Any ideas?

  • Adobe Acrobat 8 upgrade

    I have Adobe Acrobat 8 on a windows laptop. we have now purchased 2 MacBooks. I want to install Adobe on the new laptops but obviously the discs are for windows machines. I assume the upgrade purchase from 8 to XI is still available even though it go

  • Can't convert type to outlines

    I recently purchased CS5, and find there's a feature I'd like in Illustrator that doesn't appear to work. The option Type>Create Outlines is grayed out. I'm using Mac OS X 10.6. Is this another instance of a feature only available on Windows? Is ther

  • DM 3.1 /  Classification types

    Hello, I'm havin troubles with my classification type colors. I had set a new type and a color for it. There where few tables in my model that I had set that type and they were purple. I imported some changes from data dictionary to two of those tabl