Dialogue tick boxes un-hiding all fields, not just the ones where value has changed to true

I am hoping someone can help me make what I want to happen, happen if certain check boxes are ticked withing the dialogue box
right now I can see on the console print that the tick box turns the value from false to true but the OK button is also un-hiding all my fields rather than just the ones where the value has turned to true. What am I missing here
//Create a Dialogue box for staff to state how many of the account owners are in branch in order for the names to show in the signing section
var Signors =
    result:"cancel",
    DoDialog: function(){return app.execDialog(this);},
    bChk2:false,
    bChk3:false,
    bChk4:false,
    bChk5:false,
    initialize: function(dialog)
        var dlgInit =
                "Chk2": this.bChk2,
                "Chk3": this.bChk3,
                "Chk4": this.bChk4,
        dialog.load(dlgInit);
    commit: function(dialog)
        var oRslt = dialog.store();
        this.bChk2 = oRslt["Chk2"];
        this.bChk3 = oRslt["Chk3"];
        this.bChk4 = oRslt["Chk4"];
    description:
        name: "Signors",
        elements:
                type: "view",
                elements:
                        type: "view",
                        char_height: 10,
                        elements:
                                type: "static_text",
                                item_id: "stat",
                                name: "Who is here to sign:",
                                char_width: 15,
                                alignment: "align_fill",
                                font: "dialog",
                                type: "view",
                                char_width: 8,
                                char_height: 8,
                                align_children: "align_top",
                                elements:
                                        type: "view",
                                        char_width: 8,
                                        char_height: 8,
                                        elements:
                                                type: "check_box",
                                                item_id: "Chk2",
                                                name: "Primary Applicant",
                                                type: "check_box",
                                                item_id: "Chk3",
                                                name: "Associate 1",
                                                type: "check_box",
                                                item_id: "Chk4",
                                                name: "Associate 2",
                        type: "ok_cancel",
// did the value change when ticked - lets check
Signors.bChk2 = false;
Signors.bChk3 = false;
Signors.bChk4 = false;
if("ok" == Signors.DoDialog())
    if (Signors.bChk2 = true)
getField("Signor1").hidden = false;
getField("Staff1").hidden = false;
getField("Date1").hidden = false;
getField("Date2").hidden = false;
if (Signors.bChk3 = true)
getField("Signor2").hidden = false;
getField("Staff2").hidden = false;
getField("Date3").hidden = false;
getField("Date4").hidden = false;
if (Signors.bChk4 = true)
getField("Signor3").hidden = false;
getField("Staff3").hidden = false;
getField("Date5").hidden = false;
getField("Date6").hidden = false;
    console.println("Chk2:" + Signors.bChk2);
    console.println("Chk3:" + Signors.bChk3);
    console.println("Chk4:" + Signors.bChk4);
    console.println("Chk5:" + Signors.bChk5);
//console.println shows if bChk.. is true or false
    console.println("Chk2:" + Signors.bChk2);
    console.println("Chk3:" + Signors.bChk3);
    console.println("Chk4:" + Signors.bChk4);
    console.println("Chk5:" + Signors.bChk5);
//Yeah, confirmed values have changed, now show fields based on staff input
//was primary applicant ticked
doWhatIWant: function(results) {
if (results [Signors.bChk2] = true)
getField("Signor1").hidden = false;
getField("Staff1").hidden = false;
getField("Date1").hidden = false;
getField("Date2").hidden = false;
//was Associate 1 ticked
if (results [Signors.bChk3] = true)
getField("Signor2").hidden = false;
getField("Staff2").hidden = false;
getField("Date3").hidden = false;
getField("Date4").hidden = false;
//was Associate 2 ticked
if (Signors.bChk4 = true)
getField("Signor3").hidden = false;
if (Signors.bChk4 = true)  
("Staff3").hidden = false;
if (Signors.bChk4 = true)
("Date5").hidden = false;
if (Signors.bChk4 = true)
("Date6").hidden = false;

You're missing some curly brackets, using the incorrect equality operator, and using the long deprecated field.hidden property. Try this:
if ("ok" == Signors.DoDialog()) {
    if (Signors.bChk2) {
        getField("Signor1").display = display.visible;
        getField("Staff1").display = display.visible;
        getField("Date1").display = display.visible;
        getField("Date2").display = display.visible;
    if (Signors.bChk3) {
        getField("Signor2").display = display.visible;
        getField("Staff2").display = display.visible;
        getField("Date3").display = display.visible;
        getField("Date4").display = display.visible;
    if (Signors.bChk4) {
        getField("Signor3").display = display.visible;
        getField("Staff3").display = display.visible;
        getField("Date5").display = display.visible;
        getField("Date6").display = display.visible;
    console.println("Chk2:" + Signors.bChk2);
    console.println("Chk3:" + Signors.bChk3);
    console.println("Chk4:" + Signors.bChk4);
    console.println("Chk5:" + Signors.bChk5);
I don't know if that will deal with all of the problems, but it's a good start.

Similar Messages

  • How can I get a digital WDT that includes all samples, not just the one for the current time step...?

    See block labeled ''digital data'' in my attachment for reference. Currently, only the digital data point for the current time step can be seen (it is deleted before the next one appears). However, I would like it display all the samples in the table like in the example found at this link under ''Digital Waveform Control'':
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/fp_controls_indicators/ 
    Many thanks for any suggestions! I am new to Labview, so I appreciate your help.
    Solved!
    Go to Solution.
    Attachments:
    myproject.vi ‏220 KB

    Hey westerman111,
    If you're looking to produce have your display include the solution information from previous solver steps, you will need to buffer the previous data. The way to implement this in a Control Design & Simulation Loop is using the Memory.vi found under Control Design & Simulation > Simulation > Utilities > Memory.vi. It will allow you to save previous information generated in the simulation environment for letter solution steps.
    I've attached an example that should get you started in using the Memory.vi.
    I would also make sure that what you're looking to accomplish is suitable for the Control & Simulation Loop. I know you mentioned you were new to LabVIEW so I wanted to make sure you were heading off in the right direction. Is there a particular reason why you are using the Control & Simulation Loop instead of a standard While or For Loop? The Control Design & Simulation loop is unique in that it calculates the solution of a dynamic system at a prescribed time step and ODE solver. It also provides the tools to interact with the model you are solving during execution. However, if you are simply looking to perform data acquisition and measurements (instead of dynamic model simulation) I would recommend using standard LabVIEW functions.
    Here are some useful references for getting start with both LabVIEW and the Control Design and Simulation Module.
    Tutorial: Getting Started with Simulation (Control Design and Simulation Module)
    http://zone.ni.com/reference/en-XX/help/371894G-01/lvsimhowto/sim_h_gs/
    Getting Started with LabVIEW
    http://digital.ni.com/manuals.nsf/websearch/ba2fb433a7940e7a862579d40070cc2c
    Tim A.
    National Instruments
    Attachments:
    myproject_edit.vi ‏249 KB

  • CAN I ENLARGE THE SIZE OF ALL TRACKS AND NOT JUST THE ONE TRACK AT A TIME

    I would like to enlarge the tracks on the top half of the mix screen and not just the one track I'm working on. I find that most times I'm working in 2 or 3 tracks only and it would be great if I could enlarge the size of those to work with rather than the thin tracks they appear as. I realize if I click on one that it will appear larger below to edit but can I have all the tracks recorded appear larger?
    [email protected]
    Ross

    NO

  • Results slide showing all question pool results not just the ones completed.

    I have several question pools which have the option to be taken independently or separately.
    If the user does not take all seven of the modules then the quiz results slide at the end is incorrect as it will report all of the questions not just the ones attempted.
    I have tried the Branch aware option in the quiz results option but that did not worth.
    It this an easy fix or does it require me to add a variable count for each correct answer.
    Many thanks
    Rick

    Branch aware should be just fine for that case, why do you tell it is not working? Branch Aware Quiz - Captivate blog
    When you say 'score slide is not reporting correctly', I had no such problems.
    You could create a custom score slide indeed, using variables, but what if you have to report as a SCORM? Only possibility in that case is Branch aware.

  • My iPad email is showing all emails in my "important" not just the ones I put there.  How do I make this stop?

    My iPad email is showing all emails in my "important" not just the ones I put there.  How do I make this stop?

    Its problem saving.
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/en-US/kb/how-to-fix-preferences-wont-save

  • Can I teach my apple air to ask me if I want to close all tabs or just the one I am working on? If so how? Thank you

    I keep closing down all my open tabs instead of just the one I am on.  Can I set up a prompt to ask me if I am sure this is what I want to do?

    It's a MacBook Air. Not an Apple Air. We already know it's an Apple product. And no, there isn't any way. But if you would like a warning, you can download a browser like Google Chrome or Mozilla Firefox.
    Download Links:
    Google Chrome
    http://www.google.com/chrome
    Mozilla Firefox
    http://www.firefox.com

  • Why does my back arrow close out the whole site and not just the one page?

    I just replaced my old MacbookPro with a new one.  The one difference that is driving me crazy is that the back arrow (button) closes the whole site, not just the page that I am on.  Is there a way to change this.  My old computer just sent me back to the previous page.  Thanks in advance!
    Cindy

    Red buttons, back buttons, I guess specifics matter.
    Glad you figured it out.

  • Close tab groups actually closes tabs rather than just the grouping. How do I recover all tabs, not just the last 10? Pages and tabs are not in recent history.

    I had a problem with tab groups - if I mistakenly close tab groups, I can only recover the last 10 tabs.
    I had a window with many more than 10 tabs which I reopened each session by going to History > Recently Closed Windows. I knew this was risky - I could lose this if I did not keep it in an open window or recently closed window. So I was looking for a way to save this window with all the tabs. I looked into tab groups and, not knowing what I was doing, I closed the groups of tabs. There seems to be no recovery for other than the last 10 tabs. And open tabs are not necessarily in recent history if I have not accessed the tab and refreshed.

    I don't use tab groups myself, but I know of a way to increase the number of closed tabs that Firefox remembers. Unfortunately, it's not retroactive...
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered
    (3) Double-click the following preferences and enter the preferred new value:
    (A) '''browser.sessionstore.max_tabs_undo''' (default: 10)
    (B) '''browser.sessionstore.max_windows_undo''' (default: 3)
    Regarding what is in history, by default, Firefox will load tabs on demand when you restore a session, rather than loading every single tab immediately. If you turned off that setting, or if you visited all the tabs, then those pages should be in history, but finding them amidst all the others would be quite a challenge...

  • How do I view all my movies, not just the ones I have downloaded

    I have a few movies I downloaded off the Itunes store but I cant seem to find them on my itunes movie  list. All that is listed are the movies I have downloaded to the hard drive and not  the ones I have in the cloud. THe movies show up on my other devices. 

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Use pages from other templates...not just the one you chose.

    Is there a way to choose a page from another template besides the one I started with. For example if I choose the "School Report" template, but want to also use a page from the "Lesson Plan" template, how can I do this. If you click add new page, it only gives you the initial template pages. I tried opening a new template and copying and pasting the page I wanted, but it does not work.

    My guess is that it's because the objects are floating ones.
    If you switch them as inline one, you will be able to copy the page, sometimes after inserting section breaks.
    Yvan KOENIG (from FRANCE mardi 10 février 2009 21:19:34)

  • Address Book RSET has wiped all contacts not just the unwanted ones

    I'm on an 8520 Curve running v5.0.0.681.
    I recently added an e mail account for my wife. In adding it, I allowed her contacts to be synched in.  After deleting the e mail account, her contact list stayed (all1700 of them) swamping my contacts.
    I read on these forums that using RSET in Address Book Options would remove the list. It did but also removed all my contacts.  There is no back up on a PC or on my SIM.  I can't even add contacts manually as they refuse to save.
    Any ideas on how to get my contacts back or at least to allow them to be re-input manually?
    Thanks
    Solved!
    Go to Solution.

    I've solved this myself now.
    The problem was that in doing the RSET it got rid of the address book from the BB phone. Address book was effectively not installed.
    I followed http://btsc.webapps.blackberry.com/btsc/microsites​/search.do?cmd=displayKC&docType=kc&externalId=KB2​...
    I have my contacts back too as they were synched with my e mail account contacts.  I still have the issue of deleting all the contacts from my e mail account that I don't want on my phone.
    BB should have better warnings on using RSET

  • Where can I find a list of all available add-ons, not just the ones I already have?

    It is incredibly frustrating to go through hundreds (thousands?) of addons, even if they are broken down in sub-categories. I understand that new ones are being added regularly, but surely a list in some format might be available every month or so?
    Thank you for your efforts.
    Aurel Guillemette

    ''aurel2015 [[#question-1055162|said]]''
    <blockquote>
    It is incredibly frustrating to go through hundreds (thousands?) of addons, even if they are broken down in sub-categories. I understand that new ones are being added regularly, but surely a list in some format might be available every month or so?
    Thank you for your efforts.
    Aurel Guillemette
    </blockquote>
    a list of only the new additions DOESN'T solve the problem, this would mean that I would have to do a very LONG search of the entire listings, THEN do a regular search of the new additions. It makes me wonder if the creators of the system, or the creators of the addons don't want to be noticed and chosen?

  • Will someone please ask adobe to make the document search look in all folders not just current one?

    See subject

    Thanks for your feedback. Are you wanting to search across multiple PDF documents, or are you using a collection or portfolio (a single document with multiple documents embedded).
    We don't support search across multiple documents for either of these cases, but it would help to know what you are requesting.

  • Sending Calendar Appointment from Macbook to my wife's PC with Outlook 2013 and it sends a whole calendar and not just the one appointment.

    I have a Macbook Pro Late 2013, running OS X 10 Yosemite 10.10.1 and my wife has a PC with Windows 7. I use calendar that comes with my Macbook and she uses Outlook 2013 calendar. When I email from Mail on my Macbook an appointment event and my wife opens the email with the appointment, it wants to add a whole new calendar for this one event, why is this? I just want to send her a single appointment not a whole calendar.
    I tried to see if Apple Calendar on my Macbook has any options to help with this issue and I can't see anything that will help.
    Should I check out the Outlook 2013 on my wife computer to see what options if any that I need to change to help with this problem?

    closing in favour of https://support.mozilla.org/en-US/questions/1024353

  • Using the HTML Validator for Firefox, I have found that every page I open has errors, not just the ones I have designed; why?

    Even using it on this page there are 5 errors geneated.
    I am using HTML Tidy.
    Is there something wrong? Am I using it incorrectly?

    I checked and agree this page does not pass validation
    * http://validator.w3.org/unicorn/check?ucn_uri=https%3A%2F%2Fsupport.mozilla.org%2Fen-US%2Fquestions%2F992639%23answer-551039&doctype=Inline&charset=%28detect%20automatically%29&ucn_task=conformance#
    That validator is an official w3.org validator
    *http://simple.wikipedia.org/wiki/World_Wide_Web_Consortium
    * http://www.w3.org/
    I suppose it could be expected these pages would pass validation. I will mark this for escalation lets see what HelpDesk's observations are on that.
    I also note that ''html tidy'' appears to be a utility originating from w3.org
    * http://www.w3.org/People/Raggett/tidy/
    As for your own problems with web design that would best be discussed elsewhere. <br />Ordinarily I would say a Mozillazine forum may be a good place to try
    * http://forums.mozillazine.org/viewforum.php?f=25
    Now that Webmaker have a presence on this forum it may actually be worth asking again and specifically asking from
    * https://support.mozilla.org/en-US/questions/new/webmaker
    IF you are attempting to use any Webmaker advice or product
    * https://webmaker.org/

Maybe you are looking for