Using a formselectoption value before form has been submitted

Hello experts,
I have written a web application, generating HTML via PL/SQL.
Is there a way to check the value that was selected in a formselectopen statement? If the person filling out the form selects ‘Yes’, the formsubmit button should say “Submit”. If they select ‘No’, the formsubmit button should say “Next”.
I’ve tried the code below, and my package won't compile. I get this error message: PLS-00201: identifier 'P_HOME_SCHOOLED' must be declared. Here's the code. Thanks in advance for your help.
Jeanne
HTP.formopen ('mypackage.p_create_detail', cattributes => 'name=p_detl');
HTP.tableopen;
HTP.tablerowopen;
HTP.tabledata ('<b>Home-schooled?</b>');
HTP.PRINT ('<td>');
HTP.formselectopen ('p_home_schooled');
twbkwbis.p_formselectoption ('Please Select', NULL, 'SELECTED');
twbkwbis.p_formselectoption ('Yes', 'Y');
twbkwbis.p_formselectoption ('No', 'N');
HTP.formselectclose;
HTP.PRINT ('</td>');
HTP.tablerowclose;
HTP.tableclose;
IF p_home_schooled = ‘Y’ THEN
HTP.formsubmit (cvalue => 'Submit');
ELSE
HTP.formsubmit (cvalue => 'Next');
END IF;
HTP.formclose;
Here's the version information:
PL/SQL Release 11.1.0.7.0 – Production
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
CORE     11.1.0.7.0     Production
TNS for IBM/AIX RISC System/6000: Version 11.1.0.7.0 – Production
NLSRTL Version 11.1.0.7.0 - Production

Thanks for your reply, Shankar.
I don't think that I need to define p_home_schooled as a variable, since it's defined in the formselectopen statement, and the value that the user selects is successfully being passed to mypackage.p_create_detail. The program compiles if I replace the if statement with just this line:
HTP.formsubmit (cvalue => 'Submit');
What I need to do is to somehow get the value that the user selected (Y or N) and based on that value, display either a Submit or a Next button.
Thankis for your help.
Jeanne

Similar Messages

  • Once a form has been submitted, can it be "unsubmitted" to allow the submitter to make changes?

    Once a form has been submitted, can it be "unsubmitted" to allow the submitter to make changes?

    Hi,
    Unfortunately, it is not possible to un-submit a response. However, user can submit a new response and incorrect/old response can be deleted by the moderator.
    Regards,
    Nakul

  • How do I get a different URL to show up after an email form has been submitted?

    I have created a Form in DW CS5 and have some PHP server side code to mail it out.
    However, once the Submit button is pressed it refreshes back to the Form - How do I get a different page to show up after the Form is submitted? 
    I tried using a behavior - onSubmit - go to URL  -  that gets me to the page I want to go to but I guess it overrides the PHP Form Action because the email will not send.
    Any suggestions would be appreciated.

    Thank you for the response.
    In my form - I have tried inserting a hidden field with the Value set to the redirected page I want to go to
         <input type="hidden" name="MM_insert" value="http://www.website.com/page" />
    In my form Action PHP Include - I have inserted a header function with the redirected page I want to go to
         mail($to, $subject, $body, $headers);
         header('http://www.website.com/page');
    I have also checked for empty/extra spaces at the start and end of my php tags
    None of the above has got me to the redirected page I want to go to after the submit button is selected - the Form page continues to refresh.
    Any other suggestions on where I am missing the point would be greatly appreciated - thanks.

  • Maintain Spry Sliding Panel Focus once a Form has been submitted - DW CS5

    I have a web page with 6 sliding panels.
    The last panel has an email form.
    Everything functions fine except for one item:
    Once a user hits the Submit button on the form in the last panel the panels slide back to the first (0-default) panel.
    How would I go about maintaining focus on that last panel (the one with the form on it) once the submit button is hit so that I can display the confirmation text? 
    Thanks in advance for any help or tips.

    The scripting of a CGI or PHP mail form server side stuff is designed to:
    a. open another page with a confirmation of the send     or
    b. refresh the page where the form is located so it appears as it did before the send.
    When you refresh the page outside of a submit function (F5), the page defaults to the first panel because that's the way the script is written. It is neither abrupt nor awkward. It is the correct functioning of the javascript that controls the accordion, or in this case a slider. 
    You can maybe rewrite that script to prevent it from doing so, but I personally don't know how to.
    As was pointed out by Nancy, keeping the form open in the panel, will more likely than not lead to viewers thinking that it didn't go, and they will submit the form multiple times, (thinkiing each time that it didn't work)  before getting frustrated and leaving the page and site altogether.
    If this is for simply aesthetic reasons, remember that "form follows function".  In a choice between what works and what looks good, what works should always take priority. It doesn't matter how nice it looks if it defeats its purpose with the design being flawed.

  • How do I change template designs once a form has been created using another template design?

    How do I change template designs once a form has been created using another template design?

    I talked to a service Representative and he told me there isn't a function to change a form using one template to a different template. For example, I used template for "Accommodation registration" and wanted to change it to "admissions application." I was hoping I could just select a "Change template" rather than having to copy/paste everything to the new template. But that's what i had to do. Maybe the next version of this software will make it easier to change design templates.

  • Can you programatically detect that a form has been called by another form?

    Can you programatically detect that a form has been called by another form using Open_Form?
    When closing a form I want to do one thing if it was opened stand-alone and another thing if it was called using Open_Form by another form.
    Thanks in advance.

    Maybe, Tony, also
    GET_APPLICATION_PROPERTY built-in ; it can
    be used to retrieve information about the calling (parent) and called
    form (child).
    The following example describes a way to perform a query on the child form
    using a value from the parent form; if the form is a child form, it first
    executes a query, otherwise the form goes into insert mode automatically.
              WHEN-NEW-FORM-INSTANCE
              ======================
              BEGIN
                   :GLOBAL.APP_NAME := GET_APPLICATION_PROPERTY(CALLING_FORM);
                   IF :GLOBAL.APP_NAME IS NOT NULL THEN
                        EXECUTE_QUERY;
                   END IF;
              END;Regards

  • There's a black and white striped glitch on the left side of my screen on my Macbook Air! Its happened before and has been an easy fix, usually just restart or turn off my computer but don't know what else to do. Is there anything I can try now?

    There's a black and white striped glitch on the left side of my screen on my Macbook Air! Its happened before and has been an easy fix, usually just restart or turn off my computer but don't know what else to do. Is there anything I can try now? I wont be able to make it to the Apple store until tomorow and would prefer if there was something I could do that didnt cost money, my computers very new and I really need help.

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    I suggest that you try to repair the phone software using PC Companion..
    Before repairing your device you may want to backup your information first. Check out this topic for more information on how to.
    How to backup?
    If the issue should still remain I think that this needs to be examined and fixed at a repair center. For more information about how to submit your phone for repair and where, contact your local support team.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Is it possible to know the date & time, when a form has been last accessed?

    Hi
    I am using forms 6i. Is it possible to know when a form has been last accessed by any user?
    Regards

    Only if you implement such a feature. (Maybe writing to a table in the PRE-FORM-trigger in an autonomous transaction)

  • Update Production Order Form if Sales Order Form has been updated

    Hi Experts, how can you update the "Due Date" in the Production Order form if the "Delivery Date" in the Sales Order form has been updated?  I am having problem catching the actual event if the Date was modified.  I'm not sure if I'm coding this correctly, but this is what I have so far:
                If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) And (pVal.Before_Action = True)) Then
                    strSQL = "SELECT DueDate FROM OWOR WHERE DueDate = '" & strDueDate & "'"
                    orecordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    orecordset.DoQuery(strSQL)
                End If
    Please share your examples.

    All, thank you for your help.  I understand why it is not working now.  I was able to accomplish what I was lookin for with the following code (for anyone who was having the same problem as me:
                If pVal.FormTypeEx = "139" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE Then                     
                    If pVal.ItemUID = "12" And pVal.BeforeAction = False And pVal.ActionSuccess = True Then  
                        oEditText = oForm.Items.Item("12").Specific
                        myNewDate = ConvertDateString(oEditText.Value, "test")                              
                        SODocEntry = oForm.Items.Item("8").Specific.Value                                     
                        oPdo = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)          '
                        oRecordSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        oRecordSet.DoQuery("SELECT DocEntry from OWOR where OriginABS = '" & SODocEntry & "'")
                        If Not oRecordSet.EoF Then
                            oPdo.GetByKey(oRecordSet.Fields.Item(0).Value)
                            oPdo.DueDate = myNewDate
                            intResult = oPdo.Update                                    
                            If intResult <> 0 Then                                                                               
    oCompany.GetLastError(errInt, errString)
                                oApplication.MessageBox("oApplication_ItemEvent: " & errString)
                            End If
                            oRecordSet.MoveNext()                                                                               
    End If
                    End If
                End If

  • When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    Hi,
    you can find documentation for Designer under this website
    http://help.adobe.com/en_US/livecycle/10.0/documentation.html#task=4,5&module=2
    In Designer you can use the JavaScript API of Acrobat.
    So the Devnet for Acrobat is also a good source.
    http://www.adobe.com/devnet/acrobat.html
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

  • I would like to know if you have to back up a macbook hard drive, can I use a external hard drive that has been previously used to back up several pc 's, or is it best to have a separate external drive for the Mac?

    I would like to know if you have to back up a macbook hard drive, can I use a external hard drive that has been previously used to back up several pc 's, or is it best to have a separate external drive for the Mac?

    In the Mac side of things, backups usually come in two flavors: clones or incrementals.
    A bootable clone is a bit-for-bit copy of all essential files in the startup volume. If using the Lions, clones can be made using CarbonCopyCloner or just plain old Disk Utility. These backups represent the safest protection of your info, but take the longest to do. Recovery is an inverse process: you copy the clone back into the internal drive.
    Incremental backups start with a complete backup of the startup volume and only copy whatever changed from the previous run. OS X includes the fully integrated Time Machine backup utility to do this. It is extremely easy to do and takes the least amount of time. Recovery is another matter altogether since you have to start with a freshly installed instance of the OS and have to apply all intervening backups to bring the result to the latest saved version.
    As for where the backup takes place, the recommended media is an external dedicated drive or drives connected via the fastest interface available on your Mac: Thunderbolt, USB3, Firewire, or USB2. Network-based backups, wired or wireless, are attractive but may not offer the same performance and hence take longer. Also important to note that the entire drive need not be completely dedicated to a single backup. The Mac's EFI firmware infrastructure allows for an unlimited number of partitions on a hard drive and each can be used for either type of backups.
    Holler if you need specifics on how to do each. This was just an executive summary.

  • Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Contact facebook to address the facebook issues.

  • Can a form that has been submitted by an applicant be returned to request further completion?

    Can a form that has been submitted be returned to person who submitted it to request further information or maybe to request completeion of additional sections that may have been overlooked?

    No,  a response record will be created for each submission. If you need them to complete more fields, you may have to ask them to fill out the form and submit again. The new submission is a new record.
    Thanks,
    Wenlan

  • I am trying to transfer the licence of a Dreamweaver CS3 Macintosh product. A transfer of licence form has been signed by the person that gave it to me. Can anyone help me complete the process?

    I am trying to transfer the licence of a Dreamweaver CS3 Macintosh product. A transfer of licence form has been signed by the person that gave it to me. Can anyone help me to complete the process as Adobe chat say they cannot to help? They told me the forum is looked at by an expert team. Anyone there? Thanks

    Did you complete your form as well?  A form needs to be completed and signed by both parties and submitted to Adobe support via a support ticket. Chat support cannot help, but should have pointed you to the KB article with the instructions.
    Transfer an Adobe product license

  • Change "The form has been closed" error message

    My client is not happy with famous "The form has been closed" error message. I have been asked to replace this with meaningful message along with some other messages. How can i do that ?
    Searched internet but noting much there about this at all, I am not sure if anybody have done that in past ? is it doable ?

    Hi Ben,
    Solution is easy,
    Edit  \12\TEMPLATE\LAYOUTS\INC\intlcorestrings.js file
    Search for "IntlCoreStrings.k_strErrorFormClosed" and replace corresponding message with your desired one.
    Save & close
    But there is a down side of it, once you change the message it gets changed for all the web application running on the same server, because this file is located in 12 hive and shared across all Apps.
    Ashraf ul Islam
    Sharepoint Consultant

Maybe you are looking for