How do I make multiple fields dependent on a checkbox?

I've got about 10 fields in an adobe form that I want to appear and be accessible if a checkbox is checked.  If the checkbox isn't checked, then I don't want them accessible or visible.  Is this possible?

Sure it is. The code can be made much simpler if you use hierarchical naming for the fields. For example, suppose all of the fields that you want to show/hide have a prefix of "group1.", (e.g., group1.name, group1.address, group1.state, etc.), then you can use the following code in the Mouse Up event of the check box:
// Get the value of this check box
var v = event.target.value;
// Show/Hide the group1 fields depending on the value of this check box
getField("group1").display = v === "Off" ? display.hidden : display.visible
It's often a good idea to reset the fields whenever they are hidden or shown, especially if the form data will be exported, so that the form data is consistent with the state of the form. If you want to do this, you could add this line to the beginning of the script:
// Reset the group1 fields
resetForm(["group1"]);
If you don't use such a naming system, the second line of code would have to be repeated for every field in the group, using the indivudual field names of course, and the resetForm statement would have to include multiple array elements for the names of the individual fields.

Similar Messages

  • How do I make multiple movies look like one?

    I created a demo of 136 slides with mostly screencaps and one
    small flash animation. The final published flash file is
    approximately 30MB. When the demo is run on multiple computers, the
    CPU utilization rises up to almost 100%, this makes the demo run
    very slowly on most computers. I was advised to cut my captivate
    movie in half ( in slides)... however even then the CPU utilization
    is quite high. How can I break my demo into multiple linked movies
    (to bring down the file size) but still have it play smoothly
    without it stopping to load after each new movie? How do I make
    multiple movies look like one?
    Thank you.

    Would it work to make the navigation of the page go to the
    next movie?

  • How do I make multiple text bold, for example scene headings or character names?

    How do I make multiple text bold, for example scene headings or character names?

    You can do that by editing the template of the document.
    Open the document, go to Edit->Template. A dialog will launch which will have element types on the left and it's properties on the right.
    Select Scene Heading(or Character name) on the left. On the right, go to 'Text' tab and click on Bold checkbox.
    Press OK.
    Hope this helps.
    Cheers,
    Sunny

  • How can we make a field confirm control compulsory field

    how can we make a field 'confirm control' compulsory field while creating a vendor code
    this field is under tab default data material tab while creating vendor code in purchasing org .part of vendor

    Hello,
    This can be done using the configuration..
    Go to Logistics - General >Business Partner>Vendors>Control>Define Account Groups and Field Selection (Vendor)--> and select the vendor group for which you want this field to be mandatory.
    Press details --> in the block "field status", double click Purchasing Plant and again double click Plant level purchasing data, in the second page (down), you can see the confirmation control key, that you have to make as req entry.
    If you want the conf control key to be mandatory for all the vendors groups, then you can do this by purchasing organisation level..that config node is just below this settings.
    Regards,
    Sakthi

  • How do I make memo fields avalible via a Universe?

    How do I make memo fields avalible via a Universe? I have several memo fields in the table I want to publish via a universe except each time I build the universe and export it, all the fields are avalible except the memo fields.
    Any help would be appreciated.
    Thanks
    Jeff

    Yes I tried it manually and it still does not give me the memo field.
    I went into the designer, created a derived table with a simple query
    select potran.purno, potran.intmemo, potran.item
    from potran
    Then checked the limit of long text and unchecked that so there is now no limit. Then when I move the derived table to the left pane in the designer, I only see the two fields, purno and item. The memo field is missing.
    Thanks
    Jeff

  • How can I make multiple pictures slowly fade to white in FCP X ?

    I am new to FCP X and I'm creating a picture slideshow.  How can I make multiple pictures slowly fade to white in FCP X ?
    For example, I would like to have 10 pictures all play in 5 seconds, and starting off with the 1st one being little light; 2nd lighter; 3rd lightter; etc., to 10th being completly white screen...
    Can anyone help ?

    Here is what I would do. Add a 5 second white generator solid to your storyline. Add your 10 half second clips as attached clips. Select them all, right click and make a compound clip. Then keyframe the compound clips opacity from 100% t0 0% with one keyframe at the beginning and one at the end. That will give you a linear reduction in opacity over the 5 seconds(10 pics). You can play with the keyframes to get the effect you want if linear isn't doing it.

  • How can we make screen fields obligatory?

    hi, guru's
             how can we make screen fields obligatory while desiging a screen in screen painter (se51)?
    regards,
         satheesh.

    Hi,
    Go to attributes of the field in layout..
    go to program tab and check input field..
    and in drop downlist put required..
    Thats it..
    Reward points if it helps..
    Regards,
    Omkar.

  • How can i make reference field mandatory in MIRO?

    Hi Experts,
    How can i make reference field mandatory in MIRO screen.
    Reference field is not available in field status group.
    I have checkedthe reference number in RE document types in OBA7 .
    But still without entering anything in reference field in MIRO,the document is getting save.
    Any other solution??
    Regards,
    Sumeya offrin

    Hi
    Strange....what you did should work.
    Was an accounting document created for this MIRO? Was it RE type?
    Ofer

  • How to modify a lookup field-type to use checkbox instead of radiobutton?

    How to modify a lookup field-type to use checkbox instead of radiobutton?
    I would like to modify the behavior for the lookup field.
    Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
    Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
    For example:
    To add the user to 10 different groups on MS-AD.
    It is desired to have the ability to check multiple groups to be added instead only one at the time.
    My client would like to use this feature in many other situations.

    Displaying will not be a big deal but with that you have to customize the action class and its working as well.

  • How can you make a field "key" in transformation rules - master data maping

    Hello ,
    We are in the process of creating some custom master data datasources for HR module. In this we are trying to extract fields from particular infotypes. In my situation we are pulling fields from only one table PA0032.  From this table I am making a view where in I am selecting all the key fields from that table and including 2 other fields (Buliding name and room number). Now I create an ATTR master datasource with this view and check in RSA3 I see the data very good. All this is time dependent data like for Employee he might be in buliding AB room 32 first and then get moved to Buliding CD room 34. So we need to keep a history of the records. Now I replicate the DS in BW system, and create custom infoobjects for building and room no. I create an infoobject called Zworkaddress and dates I use 0VALIDTO and 0VALIDFROm. I make both the dates, bulding and room as attributes of ZWORKADDRESS. Now I map all the fields from datasource to the infoobject but field ZWORKADDRESS is on,y coming up as KEy field not the dates and subtype. Thats why I am getting only the last record not all the records of the emplyee work address. 
    We are using BI 7.0, so my question is how can I make the other fields as key's so that I can have all records.
    Thanks in advance.

    Kiran,
       If you make any one time dependant system will create Dateto and date from internally. we don't need to add those.
    1. for Employee, add Company Address as attribute. make this as Time Dependant. keep Subtype as Compounding key to your employer. then you will get Employee, Sub Type and Dates as key fields. you can have complete history of Employee Address change.
    Hope this helps.
    Nagesh Ganisetti.

  • How do I make multiple screens transition?

    I have figured out how to make multiple camera angles play onscreen at one time, but I would like the layout to change while the video plays, how do I do this (or at least get started)?  I realize that this is probably basic, but I am making the move from basic editing in iMovie and it is proving painful.

    OK, so I am making a demo video for my live music show.
    I have three angles, one front, one of the guitar, and one of my feet.I have all three playing onscreen simultaneously in three screen panels on the main video screen.
    If I export it right now you see all three angles playing at once
    The layout is such that one angle is larger than the other two.
    I would like, at certain points in the video, to have the emphasis change, and have the video transition to one of the other panels getting larger, and the big one getting smaller.
    Does that help?
    Brady

  • How can i make a field mandatory in SO header .

    Dear expart
    How can i make Customer group  mandatory in SO header data.Under sales tab pricing and static.
    Plz give me spro or the direct transaction code if any.
    Yeasin

    Hi Yeasin,
    There are three ways.
    1) By using incompletion procedure by using OVA2 T.Code which is already discussed by Raja.After this assign this incompletion procudere to your document type in VOV8 and also check the box incompletion messages.
    2)By using SHD0 T.Code.
    Goto SHD0 T.Code.
    Enter the transaction code as "VA01".
    Select the transaction variant as "BUS2032".
    Two programs will appear .Select the last one(BUS2032_4480).Click on details.
    Search for the field "VBKD-KDGRP" using "CTRL+F".
    Against that field tick the mark Required.
    Save.
    3) By using SE51 T.Code.
    Enter the program name as "SAPMV45A" and screen number as "4301".
    Select Layout editor.
    Click on Change.
    The screen layout will be opened.
    Select the field "Customer group" and double clik on it.
    Attributes screen will be opened.
    Goto Program tab and for the Input field,tick this and for input select the option required from the dropdown.
    Save.
    Now If you then you can find it as mandatory.Among these three you can use any one.
    Regards,
    Krishna.

  • How do I make multiple buttons in my flash animation?

    I am new to flash, and I have no training in it whatsoever. I
    created a flash animation with flash CS3 for my photography
    website, and I want to link each of the images to different
    galleries on my site. When I created my first button it worked
    fine, but when I try to create actions to link more than one image
    as a button, keep getting an error that says "1021: Duplicate
    function definition." How do I make each image as a separate
    button?
    I used the video of this tutorial as my guide to learn how to
    create a button:
    http://www.adobe.com/designcenter/flash/articles/flacs3it_firstflash_pt1.html
    Also, when I run the animation to test it, it loops, and I
    don't want it to loop. How do I stop it from looping?

    I used the method shown in the tutorial I mentioned to create
    it (created a new layer for the button, selected the area of the
    image for the button,used modify -> convert to symbol
    -> button, I edited it so it was an invisible button by
    moving it to the hit frame, gave the selected area an instance name
    of Hizumi_btn, inserted a new layer for actions and added the code
    I have attached to this post.
    I assumed that I would just need to repeat this procedure for
    each of the other images in my animation, but when I did that I
    received the error.
    I greatly appreciate any help you can give me.
    Thanks for the information on how to stop the animation.
    Here is the code I used to create my first button.

  • How do I move multiple fields from the end of the document to another section?

    For some reason when I click Cntrl+V, it pastes the multiple fields at the end of my form rather than at the point of paste within the document.

    Select all of the fields that you wish to copy then use Ctrl-C.  Scroll to the part of the form where you want to paste the copied fields.  Select the field that you want the paste to occur after (ie, the pasted fields will appear after/below the selected field) and use Ctrl-V.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • How do I make multiple start up disks

    I've partitioned my Imac(intel) for lion and leopard but can only start up in leopard. how do I make both partitions start up disks?

    babowa wrote:
    Frankly, I'm stumped because I didn't know that Time Machine backups are bootable?
    The backups aren't, but when you restore them, the result is bootable.
    And, effective with 10.7.2, if you back up to a directly-connected external HD, Time Machine copies the Recovery HD to the Time Machine drive, so you can start up from it if your internal dies.
    Take a look at this site (in particular scroll down to Time Machine):
    Just for future reference, since Apple's dropping web hosting via MobileMe, I've moved my site.
    The new version is at http://pondini.org
    I'll leave the old one "as is" for a few days, then put redirect notices on it until it goes "poof" in June.

Maybe you are looking for

  • Both xp and windows 7 have video problems with my VGA connection using TV

    both xp and windows 7 have video problems with my VGA connection using TV as my monitor when it gets to starting up windows no matter what version it will not I have let my mac on all night and still says starting windows or the windows 7 logo and no

  • Average Row length in a table

    Hi All, I am new to oracle and I have to find the average row length for all tables in a schema. Could anyone please help me. What is the difference between data length and row length. Thanks in advance Anu Message was edited by: user448373

  • Notes in the report

    Hi We would like to add Account Notes part of reporting field. Is there any direct way or work around to include Notes in the reports. Sundar

  • Leasing in SAP SRM or MM

    Hi, I´m working with SRM 5.0 and the client has in his business process the use of lasing. Is there something in SRM or MM for manage leasing??????  Is there a table, badi, program, any functionality in order to use that?????? have you ever worked wi

  • C5-00 display

    my nokia c5 turned black and white after i turn it on.. it's because of software or what ? i have 032.010