How to validate checkboxes without javascript onsubmit?

Hi all

I have an application that has a few boxes on a form. According to the selection of the checkbox, a button redirects the user to another URL. Now what I would do. I want to create a validation process that checks to see if one of these check boxes is selected. If none is verified by the branch to another URL (or page) should not be made. Instead an error message should be displayed.

How to validate a checkbox control to a page or item validation of levels?

Thanks in advance,

Best regards Markus

Create a Validation PL/SQL function - Page level return error text:

BEGIN
   IF :p1_checkbox_1 IS NULL AND :p1_checkbox_2 IS NULL
   THEN
      RETURN 'Error Message!';
   END IF;
END;

and that's basically it.

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • How to validate the field "Reason for change" in the commercial indications using JavaScript?

    How to validate the field "reason for change" in the commercial directions Summary tab using JavaScript?

    Current version of PLM4P: v6.1.1.5.2

    Please help me to validate the fields using JavaScript.

    Thank you

    Nefertari

    Developed using some of the Javascript predefined functions that we offer, it's just JavaScript and jQuery.

    But here is an example.

    (Use Internet Explorer F12 developer tools to find the IDS of the fields to work with.)

    $(document).ready(function() { 
    
        if (UI_Ext_isSpecInEditMode && UI_Ext_HasWorkflowBehavior('1005'))
        {
           //normally, we can use jquery to retrieve elements ($('#ifOfInput).val()), but it seems to fail when the id and the name attributes are the same. so we just use javascript document.getElementById instead.
           var reasonForChange = document.getElementById('ctl01$SpecSummaryctl1$ctlCollapsibleContentContainer$ctl00$txtChangeReason')
    
           if (reasonForChange != null) { 
    
                if (reasonForChange.value == null || reasonForChange.value.length == 0) {
                     UI_Ext_MarkFieldAsRequired('ctl01_SpecSummaryctl1_ctlCollapsibleContentContainer_ctl00_lblSpecSummaryReasonforChange');
                     alert('Reason For Change is required');
                }
           }
        }
    }); 
    

    However, not the user registration or workflow specification. If you were to do this, you must remove record them and workflow buttons and links, and this probably isn't the best practice. On the contrary, you would write validation server that would give you this error message if they try to save/workflow. (So most customers do not use Extensions of the user interface for this type of validation).

    Kind regards

    Ron

  • How to create checkbox with HTML in the labels?

    How to create checkbox with HTML in the labels?
    If it is possible without the help of APEX_ITEM. BOX?

    Hello

    Yes you can do it. You just need to set * "Escape special characters" = No * in the area of 'Security' of the page box point you. But please be aware that this change could make your application vulnerable to XSS attacks in the case if users are allowed to enter data into the table that is used to fill the entries in the box.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to validate SQL syntax in Application Engine Peoplecode

    Hello

    Can someone help me to find out How to validate SQL in Application Engine Peoplecode. I just need to validate SQL syntax. If the syntax is wrong, it should save the exception in the log file but engine Apllication should not go WITHOUT success. App Engine should continue with other SQL validation to check the correct syntax and to retrieve values.

    Here is given is peoplecode, which is that I currently use.

    Thanks in advance.


    String local CSG_SQL_ID & sqltext;
    Local date & effdt;
    Local Boolean & sql_flag = True;

    & CSG_SQL_ID = CSG_REP_DIS_AET. CSG_SQL_ID. value;
    SQLExec ("SELECT DEV. CST PS_CSG_SQL_TMP, CRAD PS_CSG_REP_AUT_DST SQLTEXT WHERE CSE. CSG_SQL_ID = DEV. CSG_SQL_ID AND CST. EFFDT = DEV. EFFDT AND CST. CSG_SQL_ID =: 1 ", CSG_SQL_ID, & sqltext);

    Try

    & sql_flag = SQLExec (& sqltext);
    If & sql_flag = True Then
    & sql = CreateSQL (& sqltext);
    Local string SqlString = & sql. Value;
    Logger (String (ExtractTablesJob (& SqlString)));
    Logger (String (ExtractTablesDept (& SqlString)));
    End - If;

    catch Exception & sqlerror
    MessageBox (0, "", 0, 0, "found Exception");
    end - try;

    Ludi,

    I apologize: I remembered wrong. The Select Type must be reselect. I opened a ticket with Oracle on this problem. I hope that maybe they will build better error messaging tools, but we'll see. The real result of the ticket, it is that evolution to select Type of reselect solved my problem.

    Remember that when you Reselect it, you need to follow wherever you are. Reselect him running the DoSelect SQL statement every time until it returns no rows. So, you will need a flag turned on the table. You're DoSelect should select only the rows where the transformed flag is N. Then, you must update the line you are dealing with to set the flag turned on Y. In this way, you will pass through the processing of each lines.

    Also, just to be clear, I don't think that App Designer will ever "validate" your SQL. It allows the database to do that when you run it. It can be frustrating because up to now it is not telling you that you are developing, but the advantage is that App Designer does not limit you. You can place some SQL you want in your program, and it will transmit to the database. Stored procedures, functions, all work because the App Designer do not validate things specific special platform.

    If you wish, you can copy your SQL in the SQLExec to a SQL definition:
    SELECT THE DEV. SQLTEXT
    OF PS_CSG_SQL_TMP CST.
    PS_CSG_REP_AUT_DST SLAG
    WHERE CSE. CSG_SQL_ID = DEV. CSG_SQL_ID
    AND CSE. EFFDT = DEV. EFFDT
    AND CSE. CSG_SQL_ID =: 1

    You could name MY_AE_SQL.

    Then, in your App Engine PeopleCode, you can change the SQLExec in:
    SQLExec (SQL. MY_AE_SQL, & CSG_SQL_ID, & sqltext);

    This will place your SQL in a place that teaches better, but I don't think that it will validate it no more. In my opinion, it makes your code more difficult to read. Someone coming along behind you must open several pieces of code to see what your program does.

    The more I watch your program, you want probably to validate and protect the SQL code that is in & sqltext, rather than the SQLExec. If you want it to be dynamic, I don't see what you can do.

    You could possibly launch an other App Engine as another process. You can use the object API ProcessRequest to plan the program through the process scheduler. You must pass your dynamic SQL code to the other program through a sort of serial control. In this way each SQL would go as a separate instance in process monitor and would go to success or no success individually. I still think it's too complicated.

    I hope these thoughts help. It looks like a difficult task.

    Stephen

  • How to validate that a single check box is checked in detail block

    Hi all

    I am using oracle 10 G on windows forms.

    I need help on how to validate that a single checkbox is checked in the retail block. I have multiple records in the block of detail and I have checkboxes for each record in the detail block.

    I have a button to select values in the detail records where the check box is checked. But I want to make sure that only one record is not more than one check.

    How to validate this on a shutter release button?

    Thank you

    When I did this sort of thing, I create a variable of TYPE number form level and then add or subtract the variable I to check and uncheck the boxes. If the value of the variable is 1, then you know that only check box is selected. If the value is greater than 1, then you know that the user has selected more than one checkbox. You could also add the code to your trigger when-box-changed to test the variable and tell the user to uncheck selected record before selecing a new record.

    Regarding the variable level of form, you can use a GLOBAL package specification, PARAMETER or program unit. I prefer to use the specification of CENTRAL unit package, because this method has a smaller memory footprint. For example, in the node of the unity of the object browser program create the following:

    /* Form variables package spec */
    PACKAGE Form_Vars IS
      CheckBox_Cnt     NUMBER := 0;
    END;
    

    Now in your trigger when-box-change...

    BEGIN
       IF ( Form_Vars.CheckBox_Cnt = 0 ) THEN
          Form_Vars.CheckBox_Cnt  := Form_Vars.CheckBox_Cnt  + 1;
       ELSE
          /* it's assumed the value is greater than 0 */
          Message('Please uncheck selec ted record before choosing a new record.');
          RAISE Form_Trigger_Failure;
       END IF;
    END;
    

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere on February 3, 2011 10:15

  • My ipad is disabled. How to activate ipad without data loss? I know the password

    My ipad is disabled. How to activate ipad without data loss? I know the password

    You can not. If you know the password, how the iPad become disabled? If the device is disabled, the content is not already available. The only way to recover the device is to restore. You can restore your last backup after that. Follow the instructions in this document support. If you have forgotten the password for your iPad, iPhone or iPod touch, or your device is disabled - Apple supports

  • My reminderfox module missing after firefox update. How can I reinstall without losing any data?

    my module of Fox reminder disappeared after updating firefox. I can install this add-on again, but then I lose all the data that existed before the update. How can I reinstall without losing any data?

    Back up your ReminderFox data before reinstalling. This is stored in a separate file in the folder of the parameters active Firefox (also known as your Firefox profile folder). You can find this file by using a button on the page of troubleshooting information. Either:

    • Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table, click on "view file". Look for a folder named reminderfox and copy it somewhere safe.

    More information: http://www.reminderfox.org/documentation-faq-troubleshooting/#r5

  • How added Yontoo Extension without my knowledge

    I noticed several areas, mysupercheap.com and ndsvc.com, always appear in the list of NoScript blocking. I was an extension called Yontoo. I never installed it. How it was added without my knowledge? How can I block the addition of extensions without my permission?

    'Tools' > 'Options' > 'Security' ~ [check "warn me when sites try to install add-ons"]

  • The bookmarks menu is missing 'Organize Favorites '. How to export bookmarks without it?

    Only "Bookmark this page" and "Show all bookmarks" appear in the bookmarks dropdown. How to export bookmarks without "organize bookmarks"?

    From Firefox 4, "organize bookmarks" has been renamed "Show all bookmarks" in the bookmarks submenu.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Equium L300 - how to validate Windows?

    After I put my laptop to original settings, I got a message to validate windows. When I clicked on the legend now validate windows I get a message saying that the key is incorrect. The number on the computer is different from the one on the Microsoft label on the underside of the computer.
    Vista was ok before putting the laptop back to original settings. Vista was preinstalled when I got the laptop.

    Any ideas how to validate Windows?

    > Vista was ok before putting the laptop back to original settings
    The preinstalled Vista is already activated and so activation is not necessary and is not necessary.

    I put t understand what you mean by: + I put my laptop to original settings + and Feliks you asked how you did that.

    In your case, I would just try to install the operating system preinstalled by Toshiba yet once on your laptop using the Toshiba Recovery disk or the Toshiba HDD recovery option.

  • How to watch 3D without glasses on Qosmio F750-11R?

    Hello, I know that this question has been asked many times before, however, I can't seem to find a useful answer (related to my laptop series) anywhere.

    Most of the time the answer is to re - install the X-tunes already pre-installed.
    It is not preinstalled. I updated all the drivers and downloaded all of the proposed programmes.

    It doesn't always seem to work.
    I can convert something in 3d, but then it shows just the screen twice vertically.
    I thought that this should be easy (as suggested by the ads and the very useful note packed with the laptop). I'm not a computer genius, but it shouldn't be this hard?

    Can someone please explain to me how to do this?
    In addition to the 3d dvd I would like to play MP4 and. AVI files as well.

    Thank you!

    Hello

    > How to watch 3D without glasses on Qosmio F750-11R?

    First of all its imporntat to know if your Qosmio F750 is equipped with a 15.6 LCD FHD GLASSES FREE 3D.

    Only F750 units with a glasses free 3D LCD supports 3D without extra 3D glasses.

    Find the plug on the page of Toshiba for the Qosmio F750-11R and unfortunately, it seems that the laptop does NOT support free glasses 3D display.
    http://nl.computers.Toshiba-Europe.com/innovation/product/Qosmio-F750-11R/1115695/toshibaShop/false/

    This is also the reason why the X-tune software was not preinstalled on your laptop

  • How I bounce back without having to change the setting of 'Protection against overload only' amateur off EACH time?

    How I bounce back without having to change the setting of 'Protection against overload only' amateur off EACH time?

    This setting should be preserved, once you set it... so I'm not sure why you have to define every time...

    Then... Make sure that you put on ALL the tools of the art of logic in the preferences of LPX...

    Otherwise... you may need to reset the prefs of LPX... Put all the Tools Advanced again and the other preferences you have set... and see if that fixes things for you...

    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not affect your media files. To reset your settings preferences of the user to Logic Pro X to their original state, do the following:

    1. Logic Pro X to quit smoking
    2. In the Finder, select go to folder menu reach.
    3. Type ~/Library/Preferences in the field 'go to folder '.
    4. Press the Go button.
    5. Delete the com.apple.logic10.plist file from the Preferences folder. Note that if you set custom shortcuts, it will reset to the default values. You can export your custom key as a preset before performing this step. See the Logic Pro X user manual for details on how to do this.
    6. If you are having problems with a control surface in Logic Pro X, you can also delete the com.apple.logic.pro.cs file in the Preferences folder.
    7. Restart the computer.

    Note: If you cannot find the files listed above, you don't follow the instructions properly!

  • How to upgrade Safari without upgrading IOX?

    How to upgrade Safari without upgrading to Yosemite?

    If you are using a version of Safari older 6.1.6 are looking for updates in the update software of system preferences pane, then the Mac App Store. If you are already using this version, you must either upgrade the operating system or switch to a product such as Firefox.

    (137236)

  • How in my computer without password?

    How in my computer without password?

    Hello

    You don't tell us what operating system you are using.

    This is all the information that is available from Microsoft:

    "Logon to Windows 2000 past".

    http://support.Microsoft.com/kb/258289/en-us

    "If a password is lost, forgotten or unknown, the only method to reset the password is for the administrator (or a user with administrative access) to connect and to reset the password in computer management." There is no method in the Windows 2000 security model to bypass, disable or reset the password.

    If the administrator password is lost, forgotten or unknown, the access to the computer can not be obtained and must be reinstalled the operating system. »

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@

    This is information from Microsoft for when you forgot your XP password.

    "How to connect to your Windows XP-based computer if you forget your password or if your password expires"

    http://support.Microsoft.com/kb/321305

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@

    "What to do if you forget your password in Windows Vista"

    http://Windows.Microsoft.com/is-is/Windows-Vista/what-to-do-if-you-forget-your-Windows-password

    "If you forget the administrator password, and you do not have a password reset disk or another administrator account, you will not be able to reset the password. If there is no other user account on the computer, you will not be able to log on Windows and you need to reinstall Windows. »

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    "What to do if you forget your password Windows Windows 7"

    http://Windows.Microsoft.com/en-us/Windows7/what-to-do-if-you-forget-your-Windows-password

    "If you forget the administrator password, and you do not have a password reset disk or another administrator account, you will not be able to reset the password. If there is no other user account on the computer, you will not be able to log on Windows and you need to reinstall Windows. »

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    "What to do if you forget your password Windows 8/8.1"

    http://Windows.Microsoft.com/en-us/Windows/what-do-forget-Windows-password#1TC=Windows-8

    f you forgot your password for Windows, there are several ways to retrieve or reset:

    • If your PC is on a domain, your system administrator must reset your password.

    • If you use a Microsoft account, you can reset your password online. For more information, see the Web to reset your password page.

    • If you use a local account, use your index of password as a reminder.

    If you've tried these suggestions and still unable to connect:

    • If you have Windows 8.1, you will need to reinstall Windows.

    • If you have Windows RT 8.1, you will need to contact the manufacturer of your PC.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    http://support.Microsoft.com/kb/189126/en-us

    Tools third password

    Some third-party companies claim to be able to bypass the password that have been applied to files and features that use Microsoft programs. For legal reasons, we cannot recommend or endorse any of these companies. If you want to help to break or reset a password, you can locate and contact a third party company for this help. You use these third-party products and services at your own risk.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon

  • I have a hp pavilion ze4200 laptop and he asks me to open a session with a password, inever due do this to see my front windows stuff how can I me without a password?

    I have a hp pavilion ze4200 laptop and he asks me to open a session with a password, inever due do this to see my front windows stuff how can I me without a password?

    Hello

    It is not possible to connect to the computer without entering the username and password...

    You can create a new user account and leave the section blank password... in this case it will not lead to enter the password.

Maybe you are looking for

  • Cannot download files of services as Rapidgator more

    Use Firefox as my browser. Connection via Comcast high speed on a laptop HP 1 - year, running Windows 7, protected by Kaspersky. This just started yesterday afternoon - when trying to 'Download' a file of services as RAPIDGATORWhen I hit the "Downloa

  • Does not update Java 8 77 03 update build

    (I apologize if I posted in the wrong forum - I wasn't sure where to post). I tried to update my 77 8 Java to Java 03 updated version with no luck.  Does anyone else have this problem?  If so, how to solve it? The update seems to download successfull

  • Re: Satellite P750 - changing from 32 bit to 64 bit

    I just bought a Satellite P750 (64 bit compatible) and did the quick start upward following the instructions that says I'll get a chance to say if I want 32 or 64-bit. Only, it didn't. Have you regions, time, etc. and then started upward. But in 32 m

  • easy transfer is not copy profiles

    In Windows Easy Transfer, it gives you the option to select the user profile you want to copy. I selected user profiles, I tried Windows Easy Transfer to copy, but everything he copied, it was the shared items. Why there no copy profiles that I have

  • How to load a web application complete on a blackberry app

    Now, I try to build a blckberry application that allows to load the web application from its url. something like the fact of any browser. but I don't want to address or file menu bar. just a simple browser like app