Check for text in a text field and make checkbox mandatory

I have a text field where if the user has entered a value, then the checkbox that follows must be mandatory. I have this script that works (sort of), but I'm not sure which event to use to get the results I want. I want the message and the checkbox to be mandatory only if something is typed in the field.
Here's the script:
if ((this.rawValue != "null") || (this.rawValue != ""))
     CheckBox3.mandatory = "error";
     app.alert("Please indicate that you have reviewed the similar profile and approve it");    
else if ((this.rawValue == "null") || (this.rawValue == ""))
     CheckBox3.mandatory = "disabled";
Thanks,
MDawn

That worked. Thank you. I have another problem now. If the user deletes the information typed in the text field, the message box still displays and the checkbox is still outlined in red indicating it's required and it shouldn't be.
Thanks,
MDawn

Similar Messages

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • HT1338 My software updater freezes when "Checking for new software..." and then fans speed up.

    Whenever I run software update, the blue bar freezes at about a fourth of the way across while "Checking for new software..." and then the fans sometimes speed up until I click Cancel. Sometimes it eventually completes "Checking for new software..." but when it does it is usually 45 minutes to an hour later. What gives?

    If I reinstall the OS, will that jeopardize my data, docs or photo library? 
    No.  Boot into the Recovery volume (boot with the Command + R keys held down) and first select Disk Utility to  repair disk permissions and the disk.  Reboot and try the App Store again.
    If that fails boot again into the Recovery volume again and reinsatll the system.  Your data and photos will not be jeoparadized.
    OT

  • Capture a field and make that the subject line?

    Great forum. Looks like I will be coming here and getting new tricks. Thanks for the support.
    I am new to this so if this has been covered bear with me.
    I would like to capture a field and make that value the subject line for the email when the user submits the form.
    Specifically...use the Headlining Act Field as the Subject Line for the email.
    Is this really obvious and I just missed it?
    thanks.

    dbuchanan,
    You were asking about predetermining the name of the XML data file that gets generated when you submit data from Acrobat.
    The name of the XML data file should always be the name of the file. Therefore, if the PDF file is named "test.pdf", the data file should end-up being "test.xml". The only catch is that if the form is opened in a browser, it means that it's been saved locally in a temporary folder
    and with a temporary file name. That's when you start getting an XML data file that's named something like "TGA123DE.xml".
    I know this may not necessarily solve your problem but I think it may at least explain why you're seeing different (unpredictable) XML data file names.
    Stefan
    Adobe Systems

  • Item Category for Services (Complaints) - Customizing price field and curr.

    Hi Experts,
    for a service company (thay have only services and no products) i have assigned to a transaction type the item category ZCOM which has assigned the following values in Customizing (SPRO):
    Object Type:                             BUS2000160 (Customer Complaint Item)
    Text Determination Procedure: COMP0001
    Status Profile:                           CRMCOM_I
    Action Profile:                           COMPLAINT_ITEM
    I have also assigned the Business Transaction Categories to this item category:
    BUS 2000115 Sales
    BUS 2000120 Complaints
    I am facing the following problems:
    1. I can not put in a price for an item in the field "Net Value". Why that is not possible? I can not have the price in the master data
        of the product because the price is always different so this field has to be moficable. Do i have to assign another kind of item 
        category?
    2. Is it possible to put a default value EUR in the field Currency so that the user does not has to put always the value EUR in this
       field? Just the EUR currency will be used in this company.
    3. May be it is possible to assign an item categoy which is more adecuate for service items like a copy from a standard item
        category? Anybody know a service product standard item category?
    Best Regards
    Oliver Schultze

    Hi,
    For your 1st question--
    I think we can not put the Net value. Because the net value will come from price of the product as well as the pricing conditions. The net value in transaction is nothing but the product price and with some adjustment in conditions.
    For the second question--
    The currency will come from he BP data. The sold to party you have mainatined on your transaction check the currency is EUR or not. For this you go to BP and check in sales area data in biiling tab.
    For thirduestion--
    For as ervice product creation you have to give the item category as either SRVO or SRVM for service order product and service contract product.
    I think you will get the idea from this
    Cheers
    Chinmaya

  • Itunes stops working and sends me a message that windows is checking for the problem. I uninstalled and reinstalled itunes. It works for a while then problem resurfaces.

    I tunes stops working and I get a message stating that windows is checking for error. I uninstalled and reinstalled .. Any hints...

    See Troubleshooting issues with iTunes for Windows updates.
    If you haven't already done a complete uninstall of all iTunes components, folder wipe and reinstall please try that first. Otherwise please post back with the exact text of the error message next time it occurs.
    tt2

  • ALV print problems for reports with two sort fields and subtotal at each

    When a report has two sort fields and subtotal at each of them, the print function is not working correctly. Please see the report below.
    The second "" (single star) record (the 10 RL record) and the '*' (double star) record (the 12 RL record)  are not printing.
    This is happening for any standard SAP reports. Any resolution? Any OSS Notes?
         Material/Stock Code          Grade       Units Count     Unit Type     Set Position     LFT
         520085V000          7818     1     RL     A     19,682 LF
         520085V000          7818     1     RL     A     19,682 LF
    *     520085V000               2     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000               1     RL          
         599098V000          7717     1     RL     A     36,167 LF
    *     599098V000               10     RL          
    **                    12     RL          
    ***                    12               
    Thanks
    Anand
    Edited by: Anand Velayudhan on Feb 9, 2009 11:50 PM

    Hi,
    Check these OSS Notes..
    Note 975777 - ALV total: Subtotals disappear from printout
    Note 1039655 - ALV total: Subtotals disappear from printout II
    Thanks
    Naren

  • Have a form trying to edit.  Has a bunch of check boxes but also text fields.  I can move the fields and make them larger but I can't edit or move the text above the fields.  Like it says "Enter comments Below" and then there is a text field for them to e

    It looks like this:
    A. What can be done to improve performance?
    B.  What can be done by assessor to help performance?
    C. Comments?
    Issue is the text field below these items is not big enough.  When I make it bigger, like in "A" it gets bigger but then overlaps the text in "B" and I can't move the text.  Someone else created this form and I have no idea what A, B and C are but they are not Text Fields.  They are just static text of some sort and I can't do anything with it.

    Hi,
    Try making the subform that contains your fields flowed, this will allow them to not overlap, but you will probably have to add some margins (or some 'spacer' subforms) to get the appearance you had.
    Regards
    Bruce

  • Check for updated file in physical drive and if exists then call procedure?

    hi
    i want to check on local drive in 1 folder if upated file is there and then start my batch process which will load data from that file.
    so how to check if that file is present in location and its upated one
    is there any utiliy in oracle ????
    Reply ASAP

    Use UTL_FILE.FOPEN function with 'r' mode (read text mode). If it fails, then the file does not exist.

  • Checking for a value in a field within a subform before allowing a user to add a new Instance

    Form setup:
    Page name = Page1
    1st Subform within Page1 = Info (set to flowed)
    Objects within Info subform: Name (textfield) and Email (textfield)
    I also have a 2nd subform within Page 1 which contains an add instance button
    What I'm trying to do:
    1. The user needs to enter their Name and Email address then click "Add Instance button" to create a new instance of the Info subform :  _Info.addInstance(1);
    2. If the user fails to enter an email address, I want there to be a mesage box that infos the user that an email address is required before he/she can create a new instance. Note: It would also be nice if the cursor is Set to foucs on the email field within that particular subform instance.
    3. As long as the user tries to continue adding an instance, he/she will be denied if they do not enter an email in that instance
    4. If the user includes an email address in that instance, then the script will create add a new isntance
    5. The process should continue in this manner for each each click of the add instance button
    I presume there nees to be a loop and perhaps a somExpression scipt, but I'm not sure.
    Here's what i have so far (see below)....The script works for the first instance on the page, but it doesn't prevent new instances from being created when the email field in that "current instance" is empty. I want it to prevent the user from adding new instances if the email field is balnk in that "current instance". So, I guess I'm not sure how ot test a field in the current instance in a repeating subform.
    var vName = Info.somExpression + ".email";
        var vEmail = xfa.resolveNode(vName).rawValue;
        if(vEmail == null)
    xfa.host.messageBox("PLease enter an email address.");
    else{
    Form._Info.addInstance(1);
            var i = Form._Info.count - 1;
            xfa.host.setFocus(xfa.resolveNode("Info[" + i + "].Name")); //This set's the focus of the cursor in the Name field of the newly created subform
    Please advise, and thank you in advance!!!!!!

    Hi,
    I think you can acheive what you want just by adding "lastRow.presence = "hidden";" when you do the addInstance, so it now looks like;
    var lastRow = Form.resolveNode("Info["+(_Info.count - 1)+"]"); // Get last row
    if (lastRow.Email.isNull) // If email field empty
        xfa.host.messageBox("Please enter an email address.");
    else
        lastRow.presence = "hidden";
            var newRow = _Info.addInstance();
        xfa.host.setFocus(newRow.Name.somExpression); // set focus to Name field on the row just added
    So whenever you add a row the previous one is hidden?
    For your second issue, if you could have another button on your form, you could ask the user for a password and if they enter it correctly then show for the Info subforms, so;
    var response = app.response({ cQuestion: "Do you want to see all respones?",
                                  cTitle: "Unlock Form",
                                  bPassword: true,
                                  cLabel: "Please enter the password:" });
    if (response === "Password")
        var infoSubforms = Form.resolveNodes("Info[*]");
        for (var i = 0; i < infoSubforms.length; i++)
                    var infoSubform = infoSubforms.item(i);
            infoSubform.presence = "visible";
    You would want to password protect your template as well (in Form ... Form Properties ... PDF Security) so people couldn't just open the form and look at the password.
    Probably the simplest approach.
    Hope this helps
    Bruce

  • How can I put some text on a circular shape and make it visible in a Picture?

    I work with LabVIEW 5.1.1 (FDS), the Picture Control Toolkit and IMAQ 4.1.1.
    I'd like to make some text to flow on a circular shape of given radius just like I can do with the most common graphic programs like CorelDraw!
    How can I do?

    A new overlay VI was developed to address the need to add text to an image easily.
    IMAQ Overlay Text (Functions >> Vision Utilities >> Overlay).
    - It is available in IMAQ Vision 6.0 (which requires LabVIEW 5.1 or greater).
    It will allow you to rotate text, but it currently does not support circular shapes.

  • Check last nr in a db field and insert quary nr + 1

    I have a database field called nr, when inserting a record i want to check what te last number in mij database nr field is.
    When inserting a record it must do nr + 1.
    Is there a easy way to do this?
    perhaps with rs.last(); method?
    Can someone please help me out, thankyou in advance
    ciao

    javax.servlet.ServletException: Column 'sequence' cannot be null
    if (action != null && action.equals("insert")) {  
                   Statement stmt = con.createStatement();
                   ResultSet rsMaxSequence = stmt.executeQuery("SELECT MAX(sequence) + 1 AS \"maxSequence\" FROM hog_evenementen");
                   rsMaxSequence.next();
                   int seqNr = rsMaxSequence.getInt("maxSequence");
                   con.setAutoCommit(false);
                   PreparedStatement pstmt = con.prepareStatement(("INSERT INTO hog_evenementen (stuf0, stuf1, stuf2, Stuf3, Stuf4, Stuf5, sequence)" + "VALUES (?, ?, ?, ?, ?, ?, ?)"));
                   pstmt.setString(1, request.getParameter("stuf0"));
                   pstmt.setString(2, request.getParameter("stuf1"));
                   pstmt.setString(3, request.getParameter("stuf2"));
                   pstmt.setString(4, request.getParameter("stuf3"));
                   pstmt.setString(5, request.getParameter("stuf4"));
                   pstmt.setString(6, request.getParameter("stuf5"));
                   pstmt.setString(7, request.getParameter("sequence" + seqNr));
                   pstmt.executeUpdate();
                   con.commit();
                   con.setAutoCommit(true);
    Thnx for your fast reply m8 your the best

  • Procedure that checks for a value in the database and returns related info

    Hi Everyone,
    I need to create a stored procedure that takes customer info(any of these fname,lname,id,email etc) and looks for it in the database and displays the customer info of that particular customer(kinda search engine).
    I have to use dynamic sql and sql injection.Can anyone give me a brief idea from where to start.Thankyou.

    create or replace procedure pro_customer(p_customer_id number, p_customer out customer%rowtype) is
    begin
    select *
    into p_customer
    from customer
    where customer_id = p_customer_id;
    end pro_customer;
    the names,keys and others are invented

  • After I updated to 5.o, every time I start Firefox it does the " Checking for compatibilty of add-ons " thing and also opens a " Welcome to Firefox 5.0 " tab in addition to my home page. Is there any way to stop this, it is really annoying.

    Same as above.

    See:
    *http://kb.mozillazine.org/Preferences_not_saved
    Thee can also be a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (extensions.sqlite, extensions.rdf, extensions.cache, extensions.ini) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry.<br />
    New files will be created when required.
    See "Corrupt extension files":
    * http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to do a compatibility check or see if there is an update.

  • My iPad will not check for updates above 5.1.1 and I have plenty of memory available?

    WHy can I not download software above 5.1.1 as most of my apps require at least 7.01?

    A first generation iPad isn’t capable of running iOS versions above 5.1.1.
    (117292)

Maybe you are looking for

  • Installing leopard from .dmg file not dvd

    i have a mac pro that has 10.4 and would like to install 10.5. The thing is i don't have leopard on DVD it's a .dmg. Is it possible to install leopard onto my 10.4 mac pro without burning a dvd? thanks jason

  • Can firefox be downloaded WITHOUT Bing

    I have a windows 8-1 computor and I used to have firefox and liked it very much,however now when I try to down load firefox,all of a sudden I have BING-I DO NOT WANT BING-if it has to be ,then I will not use firefox.

  • Using iPad to Stream Music via ax.?

    Hello, IS IT possible to use an iPad to stream Music via my AX To speakers or my Home Stereo?

  • No acknowledgement of header frame

    I have two almost identical systems with remote monitoring using lookout 6.02 but one site I can connect to with not problem.  The second I have to use a external modem and only achieved connection to the site once but now I am receiving and alarm st

  • Can we use BO4 universe on BO XI 3.1

    Hello, We use BO XI 3.1, we acquired a new application with some basics reports delivered on BO4 universes. Could we use these universes on our BO XI 3.1 ? In addition, i shall add that we still use BO XI 3.1 because we have not been able to migrate