System is considering the HIDDEN pages as well for all the validations!!

Hello
I have a 4 pages interactive form and a i hv a 3 business scenarios, where in
1) 1st business scenario: All the 4 pages will be launched on the browser
2) 2nd business scenario: the 2nd and 3rd page will be hidden
3) 3rd business scenario: the 1st and 3rd page will be hidden
As soon as user logs into the intranet, user has to select a business scenario, so that, i am passing it(the selected bussness scenario) to form's JavaScript and am wrote the below code
Here BIZ = bussness scenario
if (BIZ = "2") {
form.page2.presence = "hidden"
form.page3.presence = "hidden"
Here i am giving just a code snippet (currently our system is down, it will up in next 90 min. and i am newbie to JS)
This is working fine.
But, when user SUBMITs the form, the system is doing all the validations for the hidden pages as well!! the validations includes,
- Mandatory field is populated or not
- is drop-down field has any unknown value or is it populated or not at all
Actually, my idea/impression is that.....when i am hiding the pages, then, the system, should not consider them at all, system should ignore the hidden pages in all aspects/validations
Pls. let me know How can i achieve my requirement?
Thank you

Hi,
Instead of showing hiding the pages, set them to repeatable in the Object > Binding palette, with the Min count unticked.
if (BIZ == "2") {
form._page1.setInstances(1);
form._page2.setInstances(0);
form._page3.setInstances(0);
else if (BIZ == "3") {
form._page1.setInstances(0);
form._page2.setInstances(1);
form._page3.setInstances(0);
This way the validations wont be undertaken in pages that are not present.
Niall

Similar Messages

  • Is the 'C' language acting differently for all the SDK(VisualStudio,xCode...)?

    Hi guys~!
    I've been in a dazed since i started writing this piece of code as an example since i'm still learning 'C' programming in the Poly's. Is the 'C' language acting differently while is on another platform?
    When i wrote this using VS, it works, but when it comes to Xcode, it's not going to provide me the right output.
    #include <stdio.h>
    #include <ctype.h>
    int main(int argc, const char * argv[])
        int x, num = 0;
        char choice;
        printf("Number\n");
        for (choice = 'Y'; choice == 'Y'; num++)
            for (x = 1; x <= 4; num++)
                printf("%6d\n", x);
                x++;
            } // end for
            printf("\nWould you like to continue the loop? Y/N?: ");    < - - It ignored the user key and skipped out of the loop, and proceed with the final output.
            fflush(stdin);
            scanf("%c", &choice);
            choice = toupper(choice);
        } // end for
        printf("Thank you for your participation~! Have a nice day & See you!");
    } // end main

    Code the scanf like this:
    scanf(" %c", &choice);
    Note the leading white space.
    c
    Matches a sequence of width count characters (default 1); the next pointer must
    be a pointer to char, and there must be enough room for all the characters (no
    terminating NUL is added).  The usual skip of leading white space is sup-
    pressed.  To skip white space first, use an explicit space in the format.

  • HT5621 I have several apple devices, three are mine and the other ones belong to my little children.  I use the same ID and password for all the devices.  Is this a good idea? Do I need to change the apples ID?

    I use the same apple ID for all my devices, 2 iphones, 2 itouch, 1 macbook pro, 2 ipads.  Becuse I have small children, can I change that and still, have control, and don´t need to buy the same things serveral times.

    It is something I would avoid if possible.   I would want to educate my children to think possessively and therefore of security.  Yes, I know you are all family but at the end of the day you wouldn't want your children to be blaming each other for any problems that arise.  Well, that's how I see it, for what it is worth.

  • HT5622 The Apple id that appears in my iCloud account is different from my Apple ID . I don't remember the password of the id that appears in iCloud, I want both to be the same, that is to say only one Apple ID , the one that I use for all the other appli

    The Apple ID that appears in my iCloud account is different from the one I use every time I' m requested by Apple. I forgot the password for the iCloud id. I need to know how to change the iCloud id and make them both the same.

    Is this a second hand iPhone?

  • Is the 30 days free period for all the applications in the creative cloud at once?

    What I mean is:
    If I want to test first adobe premiere for 30 days
    and later download adobe dreamweaver to test..can I still test dreamweaver? after having tested already one software?
    I'm asking this because I realise that I have only 3 days left on the "creative cloud" but I only tested one software..So could I still test for free an other one when the 30 days will be complete for this sofware?

    The trial for 30 day for CC remains same, you can download & use all the products or the one you choose but you can not download the trials for each CC products one by one for 30 days each separately.
    Regards
    Rajshree

  • Update font for all the menus and buttons

    Hi,
    In my application, i want to update the fonts of all the buttons and menu items, when the user selects a new form, what i am trying it , at the start of application i am putting the default font as
    UIManager.put("Menu.font", Constant.bigFont);
    UIManager.put("MenuItem.font", Constant.dataFont);
    UIManager.put("Button.font", Constant.bigFont);
    and when the user changes the font, i update the UIManager in Action event and call
         SwingUtilities.updateComponentTreeUI(TestUI.this); , where TestUI is my frame, on which i add all the components,
    But some how it does not work, all the fonts are not modified for all the components which are added,
    How can i do it
    Ashish

    Hi,
    In my application, i want to update the fonts of all the buttons and menu items, when the user selects a new form, what i am trying it , at the start of application i am putting the default font as
    UIManager.put("Menu.font", Constant.bigFont);
    UIManager.put("MenuItem.font", Constant.dataFont);
    UIManager.put("Button.font", Constant.bigFont);
    and when the user changes the font, i update the UIManager in Action event and call
         SwingUtilities.updateComponentTreeUI(TestUI.this); , where TestUI is my frame, on which i add all the components,
    But some how it does not work, all the fonts are not modified for all the components which are added,
    How can i do it
    Ashish

  • To add secondary infotype to Family Member/Dependents for all the countries

    Hi,
    I have a requirement to add secondary infotype IT 0106 to the infotype Family Member/Dependents for all the countries. I have used table T582V. But still it is not appearing. Please help.
    Thanks

    Hi,
    You need to do following steps .
    ~ Maintain Feature "IVWID " for your country grouping
    ~ Maintain table "V_T582V"
    "Country grouping as per "IVWID " 0021 V106 MP010600 0100 Family Member/Dependents
    ~Maintain table "V_T582W"
    ~Maintain table T591S

  • Determining Capture to Dequeue Latency for all the Events

    Is there a way to determine the capture to dequeue latency for all the events. I was able to
    determine the capture and propagation latency for the last captured event dequeued by an apply process. Is there any way to capture all the events from first till last
    the query which i used to get that was
    SELECT (DEQUEUE_TIME-DEQUEUED_MESSAGE_CREATE_TIME)*86400 LATENCY,
    TO_CHAR(DEQUEUED_MESSAGE_CREATE_TIME,'HH24:MI:SS MM/DD/YY') CREATION,
    TO_CHAR(DEQUEUE_TIME,'HH24:MI:SS MM/DD/YY') LAST_DEQUEUE,
    DEQUEUED_MESSAGE_NUMBER
    FROM V$STREAMS_APPLY_READER
    WHERE APPLY_NAME = 'APPLY_SITE1';

    You can simply write a unique class as an ActionListener and in its actionPerformed method you do the following:
    Object source = e.getSource(); // e is our event
    if (source == component1) {
    } else if (source == component2) {
         ..Hope this helps

  • When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    gonsa47 wrote:
    When I open it in pages or word the correct company logo appears.
    Does the mail app display whatever is in the document without the ability to differentiate between hidden or non hidden images?
    The mail app will not display fillable form fields in PDF files that can be seen in real PDF apps. I say real PDF apps because the form fields in PDF apps will not appear in the iBooks app either. IMO, iBooks is not a real PDF app.
    So, I would say that the mail app cannot differentiate between hidden and non hidden items

  • How do you change/adjust border width for all the cells in a table created in Pages?

    How do you change/adjust border width for all the cells in a table created in Pages?
    Note- I am trying to figure out how to create and format tables in the latest version of the Pages app on an iPad air (iOS 8.1.1.1) . Creating tables, adding or removing borders for individual/all cells in a table seems straight forward. However the default border style seems to be a heavy black line. How do I change this?
    I found the option add or remove borders for all/ individual cells in a table, however I can't find any option within style/format dialogue screens for changing colour or line thickness for table cells. Likewise I can't find any clear instructions on how to do this in apple help pages or support website
    Btw- I'm assuming  it is possible to customize/adjust the colour & thickness of selected lines in a table created in this app (it's fairly easy to do this word processing apps like MS Word) please let me  know if this is not actually possible in Pages

    They know perfectly well what they took out of Pages '09.
    Well over 90 features.
    Do you think you posting feedback is going to remind them of what they did?
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
    Peter

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • The latest version of Firefox loads with the Ask page and doesn't retain the selected home page. How do I change this?

    I downloaded the latest Firefox version. Upon loading it it doesn't retain the previous Home Page setting and always reverts to the Ask page, which is always indicated as the Home Page. This is annoying. How do I overcome this problem?

    #Remove Ask Toolbar (if you have it installed):
    #*http://support.mozilla.org/en-US/kb/Uninstalling+add-ons
    #*http://support.mozilla.org/en-US/kb/Cannot%20uninstall%20an%20add-on
    #*http://kb.mozillazine.org/Uninstalling_toolbars
    #Reset your home page (if the Ask search page is displayed when starting Firefox): http://support.mozilla.org/en-US/kb/How+to+set+the+home+page
    #*You can reset to the default by clicking "Restore to default" on Options > General > Startup > Home page. Be sure to set "When Firefox starts" to "Show my home page" on that same panel.
    #Reset your Location Bar search engine (if typing a few words in the URL/Location Bar takes you to Ask search):
    #*type '''''about:config''''' in your Location Bar, like typing a web site address, and press the Enter key
    #*ignore warning and choose to continue
    #*in Filter, type '''''keyword.URL'''''
    #*in lower part of screen, if it is '''bold''' and shows "'''user set'''", right-click keyword.URL and choose "Reset"
    #*in Filter, type '''''Ask'''''
    #*any items in lower part of screen in '''bold''' and showing "'''user set'''", right-click and choose "Reset"
    #*close about:config tab
    #*See:
    #**http://kb.mozillazine.org/About:config
    #**http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28external_-_search_engine.29
    #**http://kb.mozillazine.org/Keyword.url
    #**http://www.techrena.net/computers/address-bar-search-provider-firefox/
    #If Ask is shown in your Search Bar and you want to remove it:
    #*https://support.mozilla.org/en-US/kb/Search%20bar
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I have an iPhone 6 with IOS 8.1.3 and when I use the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can have the whole screen to what I am browsing?

    I have an iPhone 6 with IOS 8.1.3. When I go to the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can use the whole screen to what I am browsing?

    OOPS! Too quick on the trigger to ask that question without trying anything. Sorry. Solved it by touching the bookmark icon.

  • How to set the zoom out or in for all pages permanently?

    I wish to set my page size one size smaller than the default.
    The result of ctr - (zoom out) is exactly what I want (it decreases the size of text AND images). However this effect only lasts for the page I am currently on, as soon as I navigate to a different page (or just refresh the page I am at), it reverts back to the default size.
    I looked at Tools->Options->Content, however that deals only with text size (besides it looks only certain pages are affected by this setting anyway).
    In other words, how (or where) do I set my browser to automatically decrease size or 'Zoom Out' for all the pages I visit in order not to set it manually for every page every time.
    Regards
    PS.
    If this setting can be applied for individual users (I have a multi user PC) that would be even better, although I would be very grateful if I could just set it.
    PPS.
    Additional information. I just discovered it seems to be working now in normal browsing but not in private browsing, my apologies for the omission.

    Default FullZoom Level extension:
    https://addons.mozilla.org/en-US/firefox/addon/6965

  • When printing anything off the internet it shrinks the full page into one forth of the full page. How can i print using the enitre page?

    Every time I use firefox I can't print full pages off the internet. I will find the page I want, for example, map quest. I push the print button and my printer prints the entire page in one forth of the space. The entire page I printed can be found in the upper left hand corner of the full page, just shrunk down to a fourth of its size. How can i get a full page printed from the internet?
    == This happened ==
    Every time Firefox opened

    See this:
    [http://kb.mozillazine.org/Problems_printing_web_pages#Prints_to_a_small_portion_of_the_page]

Maybe you are looking for