Hide Form Field

I have a form that captures data, the user can sign up as a
couple or single. On a couple the have to put in 2 names on a
single only one. I would like the second name field only available
if they select couple from a drop down or radio button.
I use ASP/VBScript. How can I accomplish this, is there a
plug in, or code example I can use, maybe AJAX.
Thanks

Check out this JavaScript:
http://javascript.internet.com/forms/field-show-2.html
Walt
"Ken Pollard" <[email protected]> wrote in
message
news:gch0uk$6r4$[email protected]..
>I have a form that captures data, the user can sign up as
a couple or
>single.
> On a couple the have to put in 2 names on a single only
one. I would like
> the
> second name field only available if they select couple
from a drop down or
> radio button.
>
> I use ASP/VBScript. How can I accomplish this, is there
a plug in, or code
> example I can use, maybe AJAX.
>
> Thanks
>

Similar Messages

  • How to Hide Form Field If the data null

    Hi All,
    I have an issue in the RTF, i am working in XMLP 5.6.2 Desktop Edition. I am developing template for Dunning Letter report. I have four fields in the footer like collector name,mail id, tele number and then fax. Here some collectors may not having fax and mail id since these fields are opition in the DFF. So I want to hide the form fields with the labels also if the collectors dont have mail id and fax nos. Now i am getting blank space for the collector who dont have mail id and fax nos. I dont knw what logic that need to apply over here.
    I have the form fields in the template like ....
    <?COLLECTOR_NAME?>
    <?COLLECTOR_MAIL_ID?>
    Tel. <?COLLECTOR_TELE?>
    Fax. <?COLLECTOR_FAX?>
    Please advice me to close this issue.
    Thanks in Advance
    Prabu

    Hi,
    This tag is working if the fax value is not in the xml code. But i am getting blank space
    Cfx, In my report if mail id and fax is not avaliable then it displays like...
    HENRY MICH (Collector name)
    (Collector mail id)
    432-627-9393 (Collector phone)
    (Collector fax)
    I want to display the in my report like
    HENRY MICH
    432-627-9393
    I want to remove the blank space for the mail id and fax if the value is not there in the report.
    Please advice me to resolve this...
    with regards
    prabu

  • Show or hide form fields based on cfselect selection

    Hi,
    I'm using ColdFusion 9 and
    I want to show/hide a form field type=checkbox if an assigned value is selected in a dropdown list, but it doesn't work.
    I use a javascript function.
    My question is: Are there better possibilities with ColdFusion to do this or is Javascript the best solution???
    Here is my code:
    <script type="text/javascript">
        function show(){
            var select = 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">
    <cfselect name="dropdownlist" 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="area" style="display:none">
             <cfloop query="select_list" > 
             <tr style="display:none">
          <td>    
               <cfinput name="gsu"  type="checkbox"  value="#select_list.id#"> #select_list.name#
              </td>
         </tr>
             </cfloop> 
         </div>
    </cfform>
    Thank you and best regards!
    Claudia

    Okay, thank you for your answer.
    I changed the javascript function and replaced the <div> with the <table> tag. Then it works.
    Here is an extract of my code:
    <script type="text/javascript">
        function show(){
            var select = document.getElementById('dropdownlist'); 
            var strUser = select.options[select.selectedIndex].value;    
            if(strUser== 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">
    <table id="area" style="display:none">
             <cfloop query="select_list" > 
             <tr">
          <td>    
               <cfinput name="gsu"  type="checkbox"  value="#select_list.id#"> #select_list.name#
              </td>
         </tr>
             </cfloop> 
         </table>
    </cfform>

  • How to hide form fields in OIM?

    Hi,
    i want to customize OIM so, that a user see only the form field "create user".
    The form field for Role, Organization and Autorization Policies" should be disabled/hided for designated user.
    Is it possible to manage this over autorization policies?

    The set of links for users, roles, organizations and authorization policies are defined in the web application. Authorization policies only define which ones are accessible or greyed out. Selection links are always shown, with authorization policies only defining which objects are retrieved by the search.
    If you want to remove the links altogether you will need to modify the web application oim.ear.
    Edited by: duncandb on Jun 15, 2012 6:15 AM

  • Hide form field based on name that contains certain characters

    I think this is an easy one.
    We're looking for help with a script that will hide all instances of text fields that contain a certain value. We have a function running that applies to the same text fields, however, each text field had to be tagged with a number at the end. Also running with this is a custom save button that flattens the page and hides certain elements before saving out. The hide function works pretty straightforward with "this.getField… = display.hidden;". The issue is that we don't want to repeat this for every single instance of the text fields that share the same name.
    We need it look for every text box that has a similar title so for instance if we had multiple fields like this…  "my-text-field-01", "my-text-field-02" and "my-text-field-03" we want the script to look for the name "my-text-field" and hide all instances of that.
    Hope this makes sense, sorry, our programming skills are still amateur. Thanks in advance for any help.

    You can do that if you use a heirarchical naming convention. So instead use something like: my-text-field.1, my-text-field.2, etc.
    You can then hide them all like:
    // Hide all of the "my-text-field" fields
    getField("my-text-field").display = display.hidden;

  • How to show/hide a form field?

    Hi all,
    Is it possible to programaticlly show/hide a from input field at runtime?
    best

    You can use javascript to achieve this and following is the code I'm using in one of the forms to hide a field when this form is being opened.
    ..after displaying page...
    declare
    v_id number(10);
    begin
    v_id:=p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID',
    p_index => 1
    If v_id is null then
    htp.p('<SCRIPT LANGUAGE="JavaScript">
    function get_index(p_name) {
    var i;
    for (i=1; i<document.forms[0].length; i++){
    if ( document.forms[0].elements.name == p_name) {
    return i;
    var j = get_index("FORM_NAME.DEFAULT.FIELD_NAME.01");
    document.forms[0].elements[j].style.visibility="hidden";
    </SCRIPT>');
    End If;
    -Krishnamurthy

  • Reader hides filled in text in form fields

    Hi,
    I made a form for a client in Indesign and saved in Acrobat > Reader Extended PDF > Enable Additional Features.
    When opening in the Reader it hides filled in text in form fields. Only a click in the field will show the text. I want the filled in text be shown as you should expect. Like for example Apple's Preview does. When printing all the text is printed but on first view all the text seems to have dissapeared. Can somebody point out to me where I go wrong?
    I hope somebody can help me out.

    If the form was ever opened and saved with Preview, it is the likely culprit here. Preview corrupts PDF forms in a number of ways when it saves them. For more information, see: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html

  • Script to hide out of the box form field in SharePoint 2013

    Can someone post a script to hide the fields on the out of the box New form of a particular list ?

    You can still edit form pages within SPO.  Embedding that script should work.  Have you tested it?
    As an alternative, you can set some of the column properties (such as
    ShowInEditForm) to No via the SPO Manager but this is a paid product - http://office.microsoft.com/en-us/store/sharepoint-manager-2013-online-WA104025157.aspx?queryid=6e5f213e%2D1ae8%2D4d5c%2D85f0%2D83712736e194&css=sharepoint%20manager&CTT=1
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Where do I hide the color in form fields in Acrobat DC?

    Where do I hide the blue color in form fields in Acrobat DC?

    Hello Jeady,
    George's JavaScript suggestion is a good answer.
    You can also turn on form field highlighting via a menu item as you could via the button in the blue bar in Acrobat XI.
    In Acrobat DC, do the following:
    1. Open your form.
    2. Select the Prepare Form tool.
    3. In the right-hand pane Prepare Forms tools, click the dropdown for More.
    4. On the More menu, select "Highlight Existing Fields" to toggle the setting.
    The setting sticks until changed for all forms open in Acrobat.
    Regards,
    Charlene

  • Hide the form field

    hai...
    i have a form which has
    three fileds,in that one fields set as
    as a combo box,in that combobox i have two
    values internal and external,if i click
    internal means it hidden the thrid field
    how can i hide the field
    thanks in advance
    bijesh

    Hi,
    Seems that the images in your post are broken, it would be better if you could edit your post and upload the correct images again, others who with the similar questions would get something helpful from it.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Hide Tab order number in form fields

    Hi,
    In Acrobat 7.0 Professional (I know it's old), how do you hide the the tab order number in form fields you create? When I type in the form fields I've created, the tab order shows up on screen and on the hardcopy printed document.
    HELP!
    Thanks!

    This is what I'm seeing, however I think we would like to know how to change the order.
    For instance, I have formatted the form to have two columns of data entry: Personal info in column 1, product info in column 2. When the user types their name in column 1, row 1 for "Name" then go to tab down to "Email", it actually tabs right to column 2, row 1, "Product Year." Altering the tab order would fix this problem.
    Thanks!

  • How to dynamically hide the Field Label in the overview page's form view?

    Hi Experts,
    How to dynamically hide, for certain condition, the Field Label in the overview page's form view?
    Please reply me.
    Regards,
    Vishal

    Hi Vishal,
    It is not possible to dynamically hide/display fields if the UI is build using configurations.
    The work around is to have multiple configurations, and based on the condition, load the
    corresponding configuration at runtime.
    The other approach is to code the complete htm view(htm coding) without using the configuration provided by the framework.
    Regards,
    Leon

  • Hide of the system form field

    Hi all
       I have  a problem  related to system form.  I want to make a noeditable  field to the system form ,
    suppose  a  have sales order form , in this form there r lot of fields.     i want to make a noeditable field to name field  by code, so what is the process, if possable  so plz send me code

    Hi,
    if you want to hide field look at
    How to hide a field in sap business one - there is no more possibilities how to hide filed on system form
    if you want to make the field noneditable, catch the event for pressing key, than the field you have focused and when its the field you want to set as noneditable, set bubbleevent to false.
    hope it helps
    Petr

  • Password-protect and hide one form field

    Hi there,
    I have been browsing through old forum discussions in search of an answer to my question.  A code George Johnson posted was really helpful, but there's  one more function I need to add to it and am struggling to figure it out on my own.
    I am creating a PDF with form fields.  Different depts within the organization will review this PDF and pass it back and forth.  The Admin dept needs one text field called "internal comments" that they can password protect.  They'd like to be able to add text, then password-protect that one field so it's hidden for other depts who review this PDF.  Admin will need the copy to be visible to them when they enter their password. 
    The script I found works really well (see below).  I set up a button to house the script, and when you click it, it locks and unlocks the "internal comments" text field with the password.  However, I can't figure out how to HIDE the "internal comments" text field after someone in Admin inputs their information.   I tried setting up a Show/Hide Field action, but I can't get it to work.  And I'm just not savvy enough to know how to alter the Javascript.
    How can I specify that the "internal comments" text field be HIDDEN when a user enters their password for "deactivate this field", and VISIBLE when they enter a password for "activate this field"?
    Any help would be greatly appreciated!
    (function () {
        // Get one of the fields in the group
        var f = getField("private.name");
        // Determine new readonly state, which
        // is the opposite of the current state
        var readonly = !f.readonly;
        var readonly_desc = readonly ? "deactivate" : "activate";
        // Ask user for password
        var resp = app.response({
            cQuestion: "To " + readonly_desc + " the fields, enter the password:",
            cTitle: "Enter password",
            bPassword: true,
            cLabel: "Password"
        switch (resp) {
        case "your_password": // Your password goes here
            getField("private").readonly = readonly;
            app.alert("The fields are now " + readonly_desc + "d.", 3);
            break;
        case null : // User pressed Cancel button
            break;
        default : // Incorrect password
            app.alert("Incorrect password.", 1);
            break;

    You could modify the section of code to something like:
            case "your_password": // Your password goes here
            getField("private").readonly = readonly;
            getField("private").display = readonly ? display.hidden : display.visible;
            app.alert("The fields are now " + readonly_desc + ".", 3);
            break;
    So it toggles both the readonly property and the display property.
    Edit: corrected typo.

  • How do you create a form that has user permissions per form field for different user?

    I need to create a form that is used by multi people but each user needs to fill out different fields within the form. I need the first user to make selections from a list and save it to send to another (the selection fields then need to be locked). Then the other user checks one of the selections made by the first user and saves the document to send back to the first user. Not sure if this is possible. I would like the first form field selections not to even show as a highlighted field to the other user (like just be more like a text field). I want the document to be able to be used more than once. The list selections will change and need to be sent to the other user at least once a month or more. Has anyone done this?

    There's no built-in way to do that, but it's probably doable using a custom-made script to hide and/or lock the fields.

Maybe you are looking for

  • Mail stops working with Exchange after VPN is launched and then stopped

    Mail and Exchange is working fine for me on SL, except when I launch Nortel VPN / Apani to run a work app (other then mail), and then end the VPN session - apple mail doesn't connect to exhange anymore. If I restart the VPN, then it connects with exc

  • Problem with audio crossfade

    Hello, When I want to make an audiocrossfade between to clips on my timeline, I find both of the clips frozen on the time line. I.e. I cannot move, resize or degroep them anymore, even after I undo the operation. I'm working with PE 7 and I use the a

  • What all logs to be removed time to time to clean R/3

    Hi, What all logs to be removed time to time to clean R/3. Regards, Rajeev Goel

  • Beginner hoping for general help - Long

    Forgive the intrusion on this particular board, but I am not at all learned when it comes to databases and distributed computing, despite the fact I hold a degree that says I should be. In short, I coded an application for my father's accountancy pra

  • Photoshop File Info

    Everyone, I have been looking into this for several months and I am hoping someone here can point me in the right direction. Background: Photoshop and other photo editing software allows you to create file info about an image, and I am most conerned