Need script to show hidden field if number =568845

Hi All
Using Acrobat 9.1 Pro on iMac with OS 10.6.8
I am working on a fillable form and need a script to show a hidden field when a button is clicked.
I have set up a number field to type in a number and the hidden field is"text1"
Now I need a script for the button to only open the hidden field if the number field =568845
That way the client can fill in the code and then show and type in the field.
Any help would be appreciated.
Ron

Hi
The field is hidden to begin with.
Someone will fill out the form with all the other fields.
But they will not be able to see the hidden field.
When they email the form to my client, the client will type the number into the number field.
Then the button to show the hidden field will have an if then statement that if the number field has the right number typed in then the button will show the hidden field, otherwise it will not be shown.
It doesn't have to be a number, it could a word or name.
All I need is the script for the if then statement.
I am trying to use this script, but it doesn't work.
if (event.value == 'Yes') { this.getField ('Hidden_Field').display = display.visible } else { this.getField('Hidden_Field').display = display.hidden }
Ron

Similar Messages

  • Need script to hide 6 fields and 3 OK buttons

    Hi All
    Seems if I fix one problem I add another one.
    I have a Job Proposal in Acrobat 9 and now need a script to hide calculation fields and 3 OK buttons.
    These fields need to be hidden when the form is filled out and emailed to the prospective customer.
    Ron A

    Thanks try
    That works.
    What I did was go under Properties, Actions, Add Javascript and pasted it 9 times.
    Then I typed in the correct field name in each one, works great.
    Looks like this.
    this.getField("City1").display = display.hidden;
    this.getField("City2").display = display.hidden;
    this.getField("City3").display = display.hidden;
    this.getField("Trans1").display = display.hidden;
    this.getField("Trans2").display = display.hidden;
    this.getField("Trans3").display = display.hidden;
    Ron A

  • Display hidden fields in the Sales Order

    Hello,
    I have a question. How can I show hidden fields using forms personalization? The issue I'm currently working right now is for Sales Order. One of the requirements is to make the subinventory field required for certain users. However, the subinventory field is hidden and I need to go to "FOLDER" then "SHOW FIELDS" from the drop down, choose "SUBINVENTORY" before field the gets displayed.
    Thank you in advance for your help! :)

    Those users can create a folder and save it and make it their default folder.
    This way, the subinventory field shows up automatically when they open the Sales order screen.
    Sandeep Gandhi

  • Access HTML hidden field value in JSP

    Hi,
    I have a JSP and need to access the hidden fields on that HTML page,
    i.e. in HTML i have a hidden tag
    <form name="login">
    <input type="hidden" name="language" value="en">
    </form>
    in my jsp i want to read the value of hidden field language
    how can i do it???

    You read it as any other field :
    String lng=request.getParameter("language");
    The string lng will contain the value "en"
    regards

  • Can't set a hidden field value from onClick event with a runtime expression

    Hi,
    I need to set a hidden field in an onClick event of button but it's not working.
    <html:submit styleClass="btnLink" onclick="document.empForm.hidden.value='<%= empID%>'">
    <%= empID%>
    </html:submit>
    Althought the second expression is evaluated and written successfully "the button value"
    I heard that this is because you can't mix the value of an attribute of a custom tag with both string literal and run time expressions.
    Is there any work around to solve that?
    I can't use EL as I'm using old JSP version

    I guess, it should work; instead of html:submit, try with button.

  • Hidden fields on PNP LDB

    Hi guys,
    Is that possible to show hidden fields from PNP LDB, before user have to make any interference? I mean, when I execute program related to PNP,  on selection screen at first time I get, for example, werks that is not on standard showing. I have tried "modify screen" strategy but it did not work.
    Thanks anyway.

    Hi.
    Try using a variant.
    First create the layout you want to display, the variant.
    Then save it.
    Call the variant in the source code.
    Don't forget to create the variant all over again, when you migrate from one enviroment to another. The variants are not transportable.
    after creating the variant, in the selection screen, paste this code in your report,
    and replace /GERAL with your variant name.
    DATA gs_variant LIKE disvariant.
    clear gs_variant  .
    gs_variant-report = sy-repid.
    gs_variant-variant = '/GERAL1'.  "the name of the variant must begin with /
    hope it solves it.
    Filipe Guerra

  • Can Validation Script Discern If a Field is Hidden?

    Hello All
    I use the validation script below to check for data in required fields on my form. I recently modified the form, changing three of the required fields from visible to hidden fields. The three fields are hidden unless the user makes a specific selection from a combo box. Then the three fields become visible, and if visible, should be required.
    I am stuck on how to tell the script to work as follows:
    1. If the three fields controlled by the combo box are visible, then they should be checked for the required data
    2. If the three fields controlled by the combo box are hidden, then the script should ignore checking them for the required data
    The three hidden/unhidden fields in the script are f5, f6, f7. Is there a way in the validation portion of the script to have it determine if the field is hidden or visible, and if visible check it for the required data?
    Thanks in advance for any ideas on this.
    var m = this.getField("txt_subject");
    var mysubject = m.value + " - Request Form Submission";
    var cType = "Reader";
    var cVersion = "< 7";
    var nWarning = 1;
    var cMsg1 = "This form cannot be submitted with your version of Acrobat Reader.";
    var cMsg2 = "You must use Acrobat Reader version 7 or higher.";
    // If Reader 6 or below is being used, display message telling user that "Email" and "Save Data" buttons don't work.
    if (app.viewerType == cType && app.viewerVersion == cVersion)
    app.alert(cMsg1 + cMsg2, nWarning)
    else {
              f1 = this.getField("txt_date");
              f2 = this.getField("txt_requested by")
              f3 = this.getField("txt_requested by phone");;
              f4 = this.getField("cbo_functional area");
      f5 = this.getField("cbo_dmm_ad_spon");
              f6 = this.getField("txt_buyer");
              f7 = this.getField("txt_buyer phone");
              f8 = this.getField("cbo_dmm_finan_spon");
      f9 = this.getField("tbx_coop_dmm");
              f10 = this.getField("tbx_load_dmm");
              f11 = this.getField("tbx_expected roi");
              f12 = this.getField("txt_event");
              f13 = this.getField("txt_start date");
              f14 = this.getField("cbo_am or pm");
              f15 = this.getField("txt_target audience");
                                if (f1.value == "")
                        {app.alert ('Please enter the date you are making this request".');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f1.setFocus();}
                        else if (f2.value == "Person making request")
                                  {app.alert ('The "Requested by" line cannot be blank. Please type the name of the person requesting this ad.');
                if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f2.setFocus();}
                        else if (f3.value == "Phone #")
                                  {app.alert ('Please type the phone number of the person requesting this project.');
                if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f3.setFocus();}
                              else if (f4.value == "Select a Functional Area")
                                  {app.alert ('Please select a Functional Area.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f4.setFocus();}
                               else if (f5.value == "Select a DMM")
                                  {app.alert ('Please select a DMM.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f5.setFocus();}
                                        else if (f6.value == "Buyer's name")
                                  {app.alert ('Please enter the name of the Buyer.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f6.setFocus();}
                        else if (f7.value == "Phone #")
                                  {app.alert ('Please type the Buyer\'s phone number.');
                if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f7.setFocus();}
              else if (f8.value == "Select a Financial Sponsor")
                                  {app.alert ('Please enter the financial sponsor.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f8.setFocus();}
                    else if (f9.value == "Enter dollars or a % amount.")
                                  {app.alert ('Please enter a dollar or percent amount for coop.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f9.setFocus();}
                   else if (f10.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter an amount for load.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f10.setFocus();}
                   else if (f11.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter the expected ROI amount in dollars.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f11.setFocus();}
                   else if (f12.value == "")
                                  {app.alert ('Please enter the Event name.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f12.setFocus();}
                    else if (f13.value == "")
                                  {app.alert ('Please enter a start date for this email.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f13.setFocus();}
                 else if (f14.value == "Select AM or PM")
                                  {app.alert ('Please select AM or PM for the Deployment time.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f14.setFocus();}
                    else if (f15.value == "")
                                  {app.alert ('Please describe the target audience for this email.');
              if (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0)
              f15.setFocus();}
                 else
                                  // Email PDF.
                                  this.mailDoc(true, "[email protected]", "", "", mysubject);}

    I went through the form, and realized I am partially where I need to be: The required fields script checks the first of the three unhidden fileds, but then skips the other two.
    To recap, I have a combobox that, if the user makes a specific selection, that selection will make three hidden fields visible. When checking the fields on the form, the required fields script should then proceed as follows:
    1. If the three fields controlled by the combo box are visible, then they should be checked for the required data
    2. If the three fields controlled by the combo box are hidden, then the script should ignore checking them for the required data
    The three hidden  fields are:
    cbo_dmm_ad_spon
    txt_buyer
    txt_buyer phone
    When the three fields are visible the script checks the first one, cbo_dmm_ad_spon, but skips checking txt_buyer and txt_buyer phone, and instead goes on to the cbo_dmm_finan_spon field.
    I believe I've correclty implemented what AcroBishop recommended. Does anyone see where I may have gone wrong?
    var correctVersion = (typeof app.formsVersion != "undefined" && app.formsVersion >= 4.0);
    var m = this.getField("txt_subject");
    var mysubject = m.value + " - Email Request Form Submission";
    var cType = "Reader";
    var cVersion = "< 7";
    var nWarning = 1;
    var cMsg1 = "This form cannot be submitted with your version of Acrobat Reader.";
    var cMsg2 = "You must use Acrobat Reader version 7 or higher.";
    // If Reader 6 or below is being used, display message telling user that "Email" and "Save Data" buttons don't work.
    if (app.viewerType == cType && app.viewerVersion == cVersion)
    app.alert(cMsg1 + cMsg2, nWarning)
    else {
              f1 = this.getField("txt_date");
              f2 = this.getField("txt_requested by")
              f3 = this.getField("txt_requested by phone");;
              f4 = this.getField("cbo_functional area");
      f5 = this.getField("cbo_dmm_ad_spon");
              f6 = this.getField("txt_buyer");
              f7 = this.getField("txt_buyer phone");
              f8 = this.getField("cbo_dmm_finan_spon");
      f9 = this.getField("tbx_coop_dmm");
              f10 = this.getField("tbx_load_dmm");
              f11 = this.getField("tbx_expected roi");
              f12 = this.getField("txt_subject");
              f13 = this.getField("txt_objective");
              f14 = this.getField("txt_start date");
              f15 = this.getField("cbo_am or pm");
              f16 = this.getField("txt_target audience");
                                if (f1.value == "")
                        {app.alert ('Please enter the date you are making this request".');
               if(correctVersion) f1.setFocus();}
                        else if (f2.value == "Person making request")
                                  {app.alert ('The "Requested by" line cannot be blank. Please type the name of the person requesting this ad.');
               if(correctVersion) f2.setFocus();}
                        else if (f3.value == "Phone #")
                                  {app.alert ('Please type the phone number of the person requesting this project.');
               if(correctVersion) f3.setFocus();}
                              else if (f4.value == "Select a Functional Area")
                                  {app.alert ('Please select a Functional Area.');
               if(correctVersion) f4.setFocus();}
                    else if(f5.display == display.visible && f5.value == "Select a DMM") {
      app.alert ('Please select a DMM.');
               if(correctVersion) f5.setFocus();}
                         else if (f6.display == display.visible && f6.value == "Buyer's name")
                                  {app.alert ('Please enter the name of the Buyer.');
               if(correctVersion) f6.setFocus();}
                        else if (f7.display == display.visible && f7.value == "Phone #")
                                  {app.alert ('Please type the Buyer\'s phone number.');
               if(correctVersion) f7.setFocus();}
              else if (f8.value == "Select a Financial Sponsor")
                                  {app.alert ('Please enter the financial sponsor.');
               if(correctVersion) f8.setFocus();}
                    else if (f9.value == "Enter dollars or a % amount.")
                                  {app.alert ('Please enter a dollar or percent amount for coop.');
               if(correctVersion) f9.setFocus();}
                   else if (f10.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter a dollar amount for load.');
               if(correctVersion) f10.setFocus();}
                   else if (f11.value == "Enter a dollar amount.")
                                  {app.alert ('Please enter the expected ROI amount in dollars.');
               if(correctVersion) f11.setFocus();}
                   else if (f12.value == "Launch? Expanded assortment? New sizes?")
                                  {app.alert ('Please enter the subject of this email.');
               if(correctVersion) f12.setFocus();}
                                     else if (f13.value == "Drive sales? Informational?")
                                  {app.alert ('Please enter the objective of this email.');
               if(correctVersion) f13.setFocus();}
                    else if (f14.value == "")
                                  {app.alert ('Please enter a start date for this email.');
               if(correctVersion) f14.setFocus();}
                 else if (f15.value == "Select AM or PM")
                                  {app.alert ('Please select AM or PM for the Deployment time.');
               if(correctVersion) f15.setFocus();}
                    else if (f16.value == "")
                                  {app.alert ('Please describe the target audience for this email.');
               if(correctVersion) f16.setFocus();}
                 else
                                  // Email PDF.
                                  this.mailDoc(true, "[email protected]", "", "", mysubject);}

  • Need to format a form field to add a "%" after the number

    I am working on a form that will both print for manual fill-in and also electronic fill-in using reader. My issue  is that I need to
    add a "%" symbol after the number input by the user. I can't use the percentage format type because that places a 0.0% in the field
    when no data is entered and I can't have that due to the need to be able to print a blank form for manual fill-in. Is there a simpl
    e way to append the % character after the user input only if data is in fact input and to leave the field empty otherwise?

    I assume you only want the user to input numbers and you've then set the format to number.
    In the textfield properties go to the format tab and set it to custom.
    Enter a custom keystroke script:
    if(!event.willCommit)
    var nChars = event.selEnd - event.selStart;
    var aFull = event.value.split("");
    aFull.splice(event.selStart, nChars, event.change);
    var strFull = aFull.join("");
    event.rc = !isNaN(strFull);
    This will allow user to input numbers only - strings are regarded as user type.
    Go to the validation tab and enter a custom validation script:
    f = event.value;
    if(f) {
        event.value = f + " %";
    If I understood your question correctly, that should do the trick.
    Torben.

  • Need to show some fields in display mode

    Hi, i need to show some fields in display mode for VA02 transaction code( is to change the values) for some particular users. so do we have any user exits for this requirement?
    Please answer me. its very urgent.. thanks in advance. 
    ex: payment terms and freight terms.

    you can try this for header level data
    MV45AFZZ exit ""USEREXIT_FIELD_MODIFICATION"
    code would be like below
       CASE screen-name.
    To suppress  Pricing total and Cuurency field at header
          WHEN 'VBAK-NETWR'.
    *YOU CAN ADD YOUR CONDITION HERE WHICH IF SATISFY THEN *EXECUTE NEXT  LINE OR SKIP IT   
          screen-INPUT = 0.
          WHEN 'VBAK-WAERK'.
              screen-INPUT = 0
        ENDCASE.
    but it depend upon what data AND in which tab you want to hide, like is it at header level or at item level or pricing (HEADER OR ITEM) data each of them have different exit to restrict data modification.
    ENJOY SAP.

  • DSWP  not showing field Customer Number in Solution Information

    Hi Guru's,
    In transaction code DSWP  while Creating <b>New Solution</b> system not showing field Customer Number in Solution Information.
    It is showing <b>Solution Name</b> and <b>Original Language </b> only.
    Due to this I am not able to continue error coming <b>Please fill out all the fields</b> but required field is missing.
    Please help.
    I have installed Solman 3.2 on Win 2003, Oracle.
    Current patch level :
    SAP_BASIS   620                   0058     SAPKB62058
    SAP_ABA          620                   0058     SAPKA62058
    BBPCRM          310                    0011     SAPKU31011
    PI_BASIS        2004_1_620     0007     SAPKIPYI57
    ST-PI       2005_1_620     0005     SAPKITLQG5
    CPROJECTS   310_620     0004     SAPK-31204INCPROJECT
    ST       320                     0010     SAPKITL320
    ST-A/PI       01E_CRM315     0000          -
    ST-ICO       140                     0001     SAPK-14001INSTPL
    ST-SER       320                     0007     SAPKITLO77
    ST-SUP       320                     0010     SAPKITLC50
    TMWFLOW      320     0010     SAPK-32010INTMWFLOW

    Hello,
      check note  877547 - Cannot create new Solution in SAP Solution Manager.
    Hope it solves your problem.
    Regards,
    Raquel Cunha.

  • App version number shows 2.0, we need this to show 1.0, the originla 1.0 didnt make it thorugh testing (denied)

    Hi All,
    Is is possible to change the approved app version number from 2.0 to 1.0. On the app world (using alt-tst) we see the released version as 2.0. We need this to show 1.0.  Is there any way to change this? Can we delete older version of the app so that this will show as 1.0? Thanks.

    Hi All,
    Is is possible to change the approved app version number from 2.0 to 1.0. On the app world (using alt-tst) we see the released version as 2.0. We need this to show 1.0.  Is there any way to change this? Can we delete older version of the app so that this will show as 1.0? Thanks.

  • Not able to retrieve netui hidden field values in java script

    I have problem in retrieving hidden field values in javascript
    I have declared hidden field as below,
    <netui:hidden dataSource="actionForm.selectedColumns" tagId="hiddenSelectedfield"></netui:hidden>
    and retrieving with tagId in javascript as below,
    obj1 = document.getElementById(tagId).style;
    its not getting value with tagId defined in netui tag.
    Any suggestion...
    Thanks,
    Amit

    Hi,
    I'm a new bee to this adobe forms and VBS.Could you explain more on that Fdf file or Can you send some documentation where i can go through of.
    Even i'm very much happy to share the pdf file..the problem is it is binded with the SAP browser.So i cant make a copy to my local system,But i can explain all the technical stuffs inside the form.
    The form is developed using adobe lifecycle designer,i can see the fields are defined in the design view.
    The fields which i'm accessing to enter the values are visible & Set user defined values..
    when you access through the SAP portal,it opens up inside the browser ..so every field you choose or select additional fields get added based on the selection..
    The "GetField" code you have shared works perfectly fine..i could read all data,or i could select a particular field to retrieve the field.
    But the "SetField" code you have shared locating the field but it is not writing the value into the field.I called a setfocus method on the particular field as well..then put f.value = fieldvalue still it chooses the particular field but didnt feed the value...
    is it possible to call a keystroke to the particular field?
    if you have any ideas please throw it up on me..i'll try all my possibilities.
    Thanks for your time !

  • More help with visible and hidden fields

    Looking for the script that will let me click a button and then show hidden text fields.
    Here's what I want to do:
    I have a text field on my form that if another text field is needed, the user clicks the "Add another Case" button and the hidden text field will appear.

    Does anyone have any suggestions?  Thanks.
    Basically, I have several needs on this form:
    First,  I only want a text field to be visible if the Add New button is selected.  Otherwise I need the text field hidden.
    Secondly, I have several text fields where I need to allow for multiple entries of the same type of information.  Such as Party Information (which consists of name, address, city, state, etc.)  There will be more than one party, so I would need the form to record the first information for the party, then the user clicks Add Another Party......which then clears the previous information allowing for the user to enter the next party info, and so on.
    I'm sure this is all basic stuff, but as I said, I'm new to this and just need to be set in the right direction.  Not sure how to get you the form.
    Thanks a bunch

  • Hidden fields in a form Dreamweaver 8

    I have a problem I can't resolve. I have with a bunch of
    hidden fields in a form. The problem I have is that some of the
    anchor points are not showing in design view for all the fields,
    just a couple show up. I have View Invisible elements in Visual
    aids turned on.
    Fields 1,2,3,9,10,11,15 don't show
    Fields 4,5,6,7,8,12,13,14 show
    Here's the code, can someone tell me what I did wrong?
    Any help will be appreciated

    Hi Max,
    This is possible in portal forms.
    The code to get the value of a field is some thing like this.
    You need to generate this javascript function using pl/sql in the Additional pl/sql Section - ... before displaying the page or ... after displaying the page.
    htp.p('
    <script>
    function myFunc(ele)
    var l_form = ele.form;
    var win;
    var val;
    var l_url = "<url>?";
    for (var i = 0; i < l_form.length ; i++){  // This is the way you traverse along all the form elements.
    if (l_form.elements.name == "<field to be refered>"){   //something like this for the field you wish to refer ==> QUESTION_RESULT.MASTER_BLOCK.QID.01
    val = l_form.elements[i].value;
    l_url = l_url+val;
    win=window.open(l_url);
    </script>
    Then call any fiels you wish to for the purpose of set or get of values.It can be even a hidden field.
    Hope this helps,contact for further clarifications.
    rahul

  • Gaps appear in IE 6 browser window for hidden fields in Create User form

    Hi,
    I need an urgent input on this one.
    I hid an OIM default attribute for users in the 'Create User' form by modifying clear_all_fields.js
    The field is hidden from the 'Create User' page fine!
    But if I open the page from Internet Explorer 6 it shows a gap in the place of the hidden field.
    For Mozilla 3.0.5 the gaps are not appearing.
    I tried removing these gaps by deleting the tags and the field in the clear_all_fields.js
    or, by reducing the dimension of the spacer.gif in GenerateCreateUserForm.jsp.
    But it reflected no change in the form look n feel.
    The requirement is to hide the fields and not remove them.
    Any suggestion as to what may be the way out?

    Thanks for the update Leonard. This would be an extremely useful plugin. I've been looking for it on http://labs.adobe.com/technologies/ under the plug-ins tab but have been unable to find it. It wasn't even there in the Pre-Release Programs. Is it located somewhere else or with a different name? Please let me know.
    Meanwhile, I've been trying to write my own VB script to get the button clicked. Here's what I've come up till now-
    FindText
    HiliteList.Add->CreateWordHilite->SetTextSelect->GetBoundingRect->PointToDevice
    The last function seems to be deprecated. Also there's nothing to connect the text highlighted by findtext with HiLiteList.Add. I guess
    I may have to use the JSO word search method.
    Any advice, as always, would be much appreciated.

Maybe you are looking for

  • Character Count Bug? (IDCS4 WinXPSP3)

    Here's a little bug. Apologies if it's been mentioned before. The Info palette tells you how many characters your selection contains. If you select the word "hello" the Info p. says: "Characters: 5" If you select an entire line that happens to contai

  • Ical and reminder on a single window

    Hei, folks! I just updated to OS Mountain Lion... 1) I would like the apple mail, ical and reminder on a single window. Is it possible? or 2) I would like the ical and reminder on a single window as I've been using on OS Lion. Is it possible? I searc

  • HT4623 when i go to settings then general there is no software update? i am trying to up date my phone...

    when i go to settings then general there is no software update? i am trying to up date my phone...

  • Iphone 5s network

    sometimes my iphone network signal become disabled ,,,, but when i turn on the airplane mode and turn it off the signal become better and wanna ask about the opensignal's app ( is that app help me ??? )

  • Photoshop CS6 hang (NOT a crash)

    I have a macbook pro with Photoshop CS6 installed. Recently Photoshop has been freezing frequently. Especially if I try to use too big of a brush. The cursor will change to the rainbow loading symbol, and I can't click on anything else on the compute