Hide the form field based on the name that contains some characters

I think it's easy.

We're looking for help with a script that allows you to hide all instances of text fields that contain a certain value. We have a running feature that applies to the same text fields, however, each text field should be labeled with a number at the end also running with this is a custom save button that flattens the page and hides some elements before the record on. The hide feature works pretty simple with "this.getField... = display.hidden; The problem is we do not want to repeat this step for each unique instance of fields that share the same name.

We must look to each text box that has a similar title, so for example if we had several fields like that...  "my-text-field-01", "my-text-field-02" and "my-text-field-03" we want the script to find the "my-text field" name and hide all instances of that. ' "."

Hope this makes sense, I'm sorry, our programming skills are still amateur. Thanks in advance for any help.

You can do if you use a hierarchical naming convention. For example, instead of using something like: my-text - field.1, my-text - field.2, etc..

You can then hide as well as:

// Hide all of the "my-text-field" fields
getField("my-text-field").display = display.hidden;

Tags: Acrobat

Similar Questions

  • How to filter the records that contains the Spanish character?

    Hello

    I had an obligation to always records based on the Spanish character.

    Kindly guide me for below.

    To filter the records that contains Spanish characters?

    For example, I had a value in the column name as 'Sureshn '.

    My query should return the above folder that contains the Spanish character "N".

    Please do the necessary help / advice on that.

    Thank you
    Orahar

    I don't know what you want, because if you want a? ¢ Analysys and Sureshn, then my previous query is sufficient. However, maybe something like that.

    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH Sample_Data AS (SELECT 'â?¢ Analysys' str FROM DUAL UNION ALL
      2     SELECT 'SureshÑ' str FROM DUAL UNION ALL
      3     SELECT 'ABCD' str FROM DUAL UNION ALL
      4     SELECT 'WXYZ' str FROM DUAL UNION ALL
      5     SELECT 'Saubhik' str FROM DUAL
      6     )
      7     SELECT str AS "Contains other than English" from Sample_Data
      8*    WHERE REGEXP_LIKE(str,'[^[a-z,A-Z,0-9]]*')
    SQL> /
    
    Contains other
    --------------
    â?¢ Analysys
    SureshÑ
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH Sample_Data AS (SELECT 'â?¢ Analysys' str FROM DUAL UNION ALL
      2     SELECT 'SureshÑ' str FROM DUAL UNION ALL
      3     SELECT 'ABCD' str FROM DUAL UNION ALL
      4     SELECT 'WXYZ' str FROM DUAL UNION ALL
      5     SELECT 'Saubhik' str FROM DUAL
      6     )
      7     SELECT str AS "Contains English" from Sample_Data
      8*    WHERE NOT REGEXP_LIKE(str,'[^[a-z,A-Z,0-9]]*')
    SQL> /
    
    Contains Engli
    --------------
    ABCD
    WXYZ
    Saubhik
    
  • Show or hide form fields based on the selection of cfselect

    Hello

    I use ColdFusion 9 and

    I want to show/hide a form field type = checkbox if an assigned value is selected from a drop-down list, but it does not work.

    I use a javascript function.

    My question is: is there the best opportunities with ColdFusion for this or Javascript is the best solution?

    Here is my code:

    < script type = "text/javascript" >

    function show() {}

    Select var = document.getElementById('dropdownlist').selectedIndex;

    if(Select == 1) document.getElementById('area').style.display = 'block ';

    else document.getElementById('area').style.display = "none";

    }

    < /script >

    ....

    < cfquery name = "select_list" >

    Select * from table

    < / cfquery >

    < cfform name = 'form' >

    < name = 'dropdownlist' cfselect onChange = "show (); ">

    < option value = "0" > please select < / option >

    < cfloop query = "select_select_list" >

    < option value = "#select_select_list.id #" > #select_list.name # < / option >

    < / cfloop >

    < / cfselect >

    < div id = 'space' style = "display: none" >

    < cfloop query = "select_list" >

    < style tr = "display: none" >

    < td >

    < name cfinput = "SSG" type = "checkbox" value = "#select_list.id #" > #select_list.name #.

    < table >

    < /tr >

    < / cfloop >

    < / div >

    < / cfform >

    Thank you and best regards!

    Claudia

    Well, thank you for your response.

    I changed the javascript function and replaced the

    with thetag. Then it works.

    Here is a snippet of my code:

    Select * from table

  • How to calculate the sum of two digital form fields based on the selection of the checkbox.

    I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B

    _ Field - 2

    _ Field - A 4

    [check] _ _ field - 6 C

    [disabled] _ _ field - 2 C

    Thank you

    The custom field C calculation script could be:

    (function () {
    
        // Get the values of the text fields, as numbers
        var v1 = +getField("A").value;
        var v2 = +getField("B").value;
    
        // Set this field's value based on the state of the check box named "CB"
        if (getField("CB").value !== "Off") {
            event.value = v1 + v2;
        } else {
            event.value = v1;
        }
    
    })();
    

    Replace 'A', 'B', and 'CB' with the real names of the fields.

  • Contact group list emails - need to hide the names of the recipient

    I have Vista Home Premium and use Windows Mail for consignments of the outgoing group.  I can't find a way to hide the names of the recipients and addresses on an outgoing group e-mail, using the contact list.  Is it possible to do, or is this just an intrinsic short entry when you use Windows Mail to group email contacts?  I have friends who use gmail, hotmail, etc., which seem to be able to do it for reasons of confidentiality.  My own e-mail address ends with "@bellsouth.net" thanks, Mark K.

    You ask the subject to create a group using a randomly message you want to send to multiple recipients using BCC or BCC?

    If the latter, either enable the BCC field in a new message window (view |) All headers), or click the To select the contacts in the list of contacts currently visible and add them to the BCC field.

    Bruce Hagen ~ MS - MVP [Mail]

  • How to hide the names of names/path of images embedded in a PDF file?

    I created a PDF to a Word document, and the problem is that the PDF document is the file names and path for all images incorporated into the PDF document. I do not want the information posted. I don't want to send the PDF to customers and ask them to read the names that I attributed to these images, it's messy. And I lost many original image files so that they exist only in the Word document, so I can't go back and rename them. I searched the internet for an answer, but I could not find one any where.

    When you create (accessible) PDFs coined the word, placed bitmap images will use the file name as 'ALT text' If you do not set something else for the text to say, because an image without ALT text is a failure against the accessibility standards. You cannot change this default action, so you should put your own text that's significant in the ALT field for each picture - that's what you should do anyway if the PDF conforms to standards.

    You can can set the text in Word, but this depends on your version where dialog boxes - Google for it - or you can change/remove it in Acrobat by using the navigation pane of tags on the left side of the window (right click on the sidebar if it is not visible). Explore the structure of tags to find the "

    " tag you want to change, right-click, and choose Properties, then put something in the "Alternate text" field This process is not something you can automate easily, but if you don't need labels at all, you can save without tags (or print to PDF).

  • My search engine is not to remember all the names that I type. How can I fix this problem so that the search engine will remember that I have type.

    My search engine doesn't remember all the names that I type. What can I do to make it back as if it were?

    Yes, it's the Google site and this entry field uses autocomplete = off, Firefox won't store form data that you enter in this field of research.

    You can use the build-in on: home page as your home page that does not have this attribute.

    See for a similar case with the name and password fields.

  • When I open a link irc with a string name that contains "~" at the end, firefox (14.0.1) opens the same channel name but with "7%" instead of "~" at the end

    When I open a link irc with a string name that contains "~" at the end, firefox (14.0.1) opens the same channel name but with "7%" instead of "~" at the end
    http://img835.imageshack.us/img835/2856/clipboard05nq.jpg

    I can't open the image, but I can say something in general about the tilde.

    The tilde "~" is an unreserved character and that's why it can be replaced by its form encoded percentage '% 7' inside a URI without changing the meaning. See

    http://en.Wikipedia.org/wiki/percent-encoding

    According to article 2.3 of RFC3986 we should prefer the encrypted form so this behavior seems to be somewhat outdated.

  • I want to change the name that appears under 'To' and the 'author '.

    I want to change the name that appears under 'To' and the 'author '.

    No matter what particular place, or simply everywhere where you happen to be at this time?

  • How is Samsung TV, possible to permanently hide the message that explains how to use Air play via Apple TV?

    How is Samsung TV, possible to permanently hide the message that explains how to use Air play via Apple TV?

    Apple Tv has the conference room mode turned on causing the message to appear.  Turn it off:

    On restrictions of airtime and the mode of the conference room on your Apple TV - Apple Support

  • Start Windows - unlock the computer screen - how to change the name that is displayed?

    I have fixed a older laptop.  It works very well.  But at the start, the old owner name appears in user name (no password required).  It is a small irritation but still...  I tried to go under control panel users and I changed administrator to my name, but it has not changed the other name at startup... ideas?  Thank you!

    Hello

    Here's how you can accomplish this:
    a. click on edit accounts in the choice of a task list box.
    b. click the account you want to change.
    c. Select the element you want to change:
    d. click on change the name to change the name that appears on the Welcome to the account screen.

    How to create and configure user accounts in Windows XP
    http://support.Microsoft.com/kb/279783

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to search files of names that contain the dollar sign ($)?

    I typed "$" in the search box and all the files were returned. I tried------$ and no items found.

    Hello

    Use the wildcards * and?

    * means 'everything' or 'all '.

    ? means 'any character a' then? We hear every two characters and so on.

    So * $*. * would find all the names of file with a $ in the name with any extension.

    ?$*.? XE'd find filenames with characters 1 or not before the $ and with the
    extensions that contain characters 1 or not before a xe as .axe, .3xe or just in. XE.

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    How to restore the page button on the Start Menu after installing Vista SP1
    http://www.Vistax64.com/tutorials/145787-Search-start-menu-button-restore-after-SP1.html

    How to restore the context Menu item search after installing Vista SP1
    http://www.Vistax64.com/tutorials/134065-search-context-menu-item-restore-after-Vista-SP1.html

    How to create a shortcut on the desktop search in Vista
    http://www.Vistax64.com/tutorials/126499-search-desktop-shortcut.html

    ----------------------------------------------------------

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How to find the name that differ just a little

    Hi all

    I wonder if is a short distance to find the name that differ for 2/3 characters;

    Example, I have a table that contains 1 varchar2 column.

    Martello

    point

    Pistola

    cemmello

    Cammelli

    I need to write a query like:

    Select * from table where colum = point

    in the result set, I want to

    point

    cemmello

    Cammelli

    Thank you

    F.

    Hello francy77

    In fact, it is not possible. There is a SQL "soundex" function, which "returns a string containing the phonetic representation of the char . This function allows you to compare the words that are spelled differently, but sound as well in English. »

    Example: Smith could be written as "SMYTHE".

    Try this:

    SELECT first_name

    FROM (SELECT 'Smith' AS the name OF DOUBLE UNION ALL

    SELECT 'Sophie' AS the name OF THE DOUBLE)

    WHERE SOUNDEX (first_name) = SOUNDEX ('Smythe')

    ;

    You get two records...

    But if you have a specific logic, then you must create a function and he set what text - what you want text input.

    Is it useful or the solution for you?

  • Is it possible to get the name of the folder that contains the current document?

    Hi all!


    I know how to get the name of the active document


    app.activeDocument.name;


    but I was wondering if you could also get the name of the folder that contains the current document. Not sure if this is possible or not, so I thought I'd ask, if so it save me a lot of time.


    Thanks in advance!

    Hi djbgraphicdesign,

    does this work for you?

    if (app.activeDocument.saved){
    alert(app.activeDocument.path.name);
    }
    

    Have fun

  • E4X: How to get the items that contain a string pattern in the name of the node?

    Is there a way to retrieve the children of an XMLList where the name of the node of a child contains a template string?

    For example:

    account <>

    < XblahX / >

    < cow / >

    < YblahY / >

    < / recording >

    How to get items in folder which has a node name that contains the string "blah"?

    var rec: XML =

    ;

    var r: RegExp = / blah /;
    var elems:XMLList = rec.children (). (localName () *.search (r) >-1);
    trace (elems. ToXmlString())

Maybe you are looking for