Auto-populate checkboxes in a form

I'm working on a form in ApEx that has several checkbox fields on it, and am having some trouble getting them to auto-populate. Based on a selection on the welcome page of this application, certain checkboxes should auto-populate so that users should be able to opt out of certain criteria on the form.
Here's an example:
On page 1 of this application, the user chooses what type of report they are requesting. Their options are: "Internal Use" "Non-Solicitation Mailing" "Solicitation Mailing" "Solicitation" "Invitation" and "Other." On the next page (the form itself), there are several different conditional items called "(type of request)_Exclusions," and all of these are checkboxes based on a Static LOV. For example, for a request that is listed as "Internal Use," the checkboxes for "Deceased" "Lost" and "No Mail" should be automatically checked so that the user has the option to opt out, and their values should be returned to the database.
Any help would be greatly appreciated.

Hi,
You want the checkboxes to be checked by default in the form while creating a new record in the database. Suppose that form page number is 7 and it has a hidden item P7_ID (refererring primary key of database table) and checkbox item P7_IS_ACTIIVE (refererring IS_ACTIVE column of database table and can have values 'Y' or 'N'). Now edit P7_IS_ACTIIVE item and scroll to Default section.
Type Default Value = case when :P7_ID is null then 'Y' end;
Default Value Type = PL/SQL Expression
In the List of Values section type List of Values Definition = STATIC2:Active;Y.
Click Apply Changes and create Automatic Row Processing (DML) process On Submit -After Computations and Validations for insert, update and delete of database table records. Type Item Containing Primary Key Column Value = P7_ID.
Whenever you create a new record the P7_IS_ACTIIVE is always checked.
Else if this is not what you need you can refer the example posted by Denes as 'Checkbox Y/N' on http://htmldb.oracle.com/pls/otn/f?p=31517:123:1499221457271585::NO
Thanks,

Similar Messages

  • Auto-populate of SHELL_shellName_shell Upper form DE only functions in one single-instance project shell.  The DE in the BP Upper Form needs to auto-populate in two separate single-instance shells.  How can I get this DE to autopopulate in both?

      The Unifier environment
    contains two single-instance project shells, INF and PBS, and two multiple-instance child project shells, INFS and
    PB.    There is a single instance, non-workflow
    business process, ‘Project Information’ that contains a data element in the
    upper form definition, Project ID.  The Project ID is set to auto-populate from the multi-instance “INFS”
    project shell attribute, which is populated manually. 
    Issue:  The auto-populate functionality for the
    Project ID ‘Shell_shellName_shell’ data element within the single-instance
    Project Information BP only functions within one of the shells, either
    INFS or PB, but not both.  The INF and INFS shells are currently deployed
    to production, PB and PBS shell are not.
    It is critical that Project ID ‘Shell_shellname_shell’ data element is populated correctly in the
    Project Information upper form of both shells, INFS and PB,
    because that data element is referenced by multiple business processes and
    integrations. 
    The attribute form definitions for both single and multiple instance project shells are identical.  The Project ID utilizes the same data
    element ‘SHELL_shellName_shell’ as is defined in both shell attribute forms
    (INFS and PB). 
    The data definition source is a Unifier system-level variable, SYS Shell
    Name (String, 128, Text Box)
    Potential Solutions:
    1. Create a Project ID DE of another data type which can
    be successfully auto-populated from either shell.  Drawback: all BPs and integrations which
    reference Shell_Shellname_shell will need to be rewritten.
    2. Investigate converting the Project Information single-instance
    to a  multi-instance BP, and create a
    separate instance for each single-instance shell type.  Same Drawback as Option #1, but with additional
    rework.  Most likely Project Information
    would have to be recreated as a new BP.
    Not sure that this option would even work.
    3. Create a separate Project Information BP for PB.  Drawback:  Two separate BPs for Project Information would
    need to be created.  All existing BPs
    refer to Project Information, so this option could potentially invalidate the
    ability to use the existing BPs in the PB shell.

    Was it really necessary to post the whole API description?!?
    Locale[] locales = Locale.ENGLISH();ENGLISH is not a method in class Locale, so do not add the braces "( );".
    Also, the constant ENGLISH is not an array, but just a single Locale object.
    You didn't say what your problem was. What do you want to achieve with your program and what is it that you don't understand?

  • Auto populate date field in form

    Hi
    I have been trying to get a field in a form to automatically populate with todays date. I have got a script which defines the default value for the field as: document.dform.currentdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
    where dform is the name of the form, and currentdate is the name of the field.
    This works fine.
    But I am using the form to populate another program, and the field name must be 00N20000001QbHo
    I assumed therefore that I should use: document.dform.00N20000001QbHo.value=displayfirst+"/"+displaysecond+"/"+displaythird
    But this does not work. In Dreamweaver the .00 appear red.
    I suspect that I need to put 00N20000001QbHo in parentheses or something similar.
    Can anyone help a newbie who doesn't know what he is doing? Full script below
    <form name="dform">
    <input type="text" name="00N20000001QbHo" size=11>
    </form>
    <script>
    var mydate=new Date()
    var theyear=mydate.getYear()
    if (theyear < 1000)
    theyear+=1900
    var theday=mydate.getDay()
    var themonth=mydate.getMonth()+1
    if (themonth<10)
    themonth="0"+themonth
    var theday=mydate.getDate()
    if (theday<10)
    theday="0"+theday
    var displayfirst=themonth
    var displaysecond=theday
    var displaythird=theyear
    document.dform.00N20000001QbHo.value=displayfirst+"/"+displaysecond+"/"+displaythird
    </script>

    JavaScript.is.not.Java.
    This is a Java forum. You could look out for a JavaScript forum at JavaScript.com. I believe JavaRanch also has one.
    db

  • Auto populate in forms

    I'm creating textboxes in a form where multiple users will fill out their contact info.  As I fill in the text box the lines below a given column automatically populate with the information above.  So if in line 1  I filled out John Smith for name When I began typing for line 2 John Smith would auto populate.  I'm not sure because the PDF was created before I started my current job but I think it was a PDF created from a word doc.  Any advice would be much appreciated, thanks.

    If the field names are the same, this is the behavior that you will get. So if you want to avoid this, simply give the fields unique names.

  • Can I auto-populate fields in a pdf form based on responses in other fields (using Acrobat XI PRO)?

    I am creating a fillable pdf form using Acrobat XI Pro and would like to be able to auto-populate text fields in one section of the form based on responses entered by respondents in an earlier section.  Is this possible?  If so, would it function for respondents using Adobe Reader to complete the form?
    Many thanks,
    Andy

    Thanks, George!  In the form I am creating, I ask respondents to identify a number of organizations that they work with.  For example, I ask "Please list up to ten organizations" and then I provide ten text boxes for organizations 1-10.  I then ask a series of follow up questions (radio buttons, check boxes, and rating scales) about each organization.  I would like to auto-populate the fields of those follow up questions with the names of the organizations that the respondents had written.  Does that make sense?  Will this require JavaScript?  My hope is to avoid complicated scripts that may give respondents technical problems with the form.  Thanks again,
    Andy

  • Auto-populate form fields based on end user input?

    I'm currently attempting to create a new form that has a combo box "Locations" with various options.  What I'm looking to do is have another text field auto populate other fields related to that location (such as address, contact information) to save on time and reduce opportunity for end user errors in input.
    What are my options for accomplishing such a task?  Some form of binding fields with a MS database possibly?
    Thanks in advance for any advice and assistance on this matter!

    Paul,
    The form and (potential) database would be located on a shared drive on the company network in which those that would use the form already have access to.
    The pc's that user's would be using have Reader 9.
    The pc I'm using for developing this form has LC Designer 8, Acrobat Professional 8, and Reader 9.
    Ideally, I would "like" for the end user to have the ability to add new locations, addresses, etc ... in the event it is needed, although this would not be likely to come up.
    Based on the software I have on hand, and the need to not incur additional expenses, what would you suggest?
    Thanks again Paul!

  • How to auto-populate form fields between documents?

    I'd like to create an interactive form where the user inputs data into different fields and then the data gets auto-populated into other fields in forms linked to the original form. Is this possible with Acrobat XI? If not, then which Adobe product is best suited for this? If it's possible, how difficult is this to do? I don't need exact "how to" tips at this point. I am not a developer and I don't have any experience with Action Script. I'm just researching what products I can use, as a non-techie, to do the job. Thanks.

    Thanks for your reply. I'm having a hard time understanding the functionality on the end-users's side with the different Adobe forms products. I did a little more reading up on this, but it's still not 100% clear. Perhaps you can help clarify.
    Scenario 1: The user does NOT have a copy of Acrobat XI on their end, and  I do NOT have a subscriptiont to FormsCentral, and I do NOT enable import/export features in the form using Adobe LiveCycle Reader Extensions. In this scenario, the user can fill out my form, but they can't save a copy of the completed form on their local drive. I, however, get a copy of the completed form where I can then extract and analyze the data.
    Scenario 2: The user does NOT have a copy of Acrobat XI on their end, but I have have a subscriptiont to FormsCentral. The user can complete the form and save it on their local drive, but I can't have data auto-populate from one to another. (Note: I went to the FormsCentral website and it says "Allow respondents to download the PDF form, print out, save, EDIT and submit later." I interperet that as meaning they can add text to a fillable form and save it on their end.)
    Scenario 3: The user does NOT have a copy of Acrobat XI on their end, but I have enabled the form with LiveCycle Reader Extensions so that I can have data auto-populate from one form to another. However, I have to pay for an Extension license fee. I managed to find the pricing, and it's too expensive for my needs right now. I'm looking to share the forms with students, so this is not an option.
    Scenario 4: The use HAS Acrobat XI. I can get data to auto-populate from one form to another and the user can complete and save on their local drive. This scenarios is not an option for me / Can't get students or schools to pay for a full license of Acrobat XI is not an option at this point.
    Is my understanding correct? If so, I feel like I've hit a dead-end. The only cost-effective solution is to have a simple fillable form without the ability to auto-populate data between forms. Sigh.
    Thanks.

  • Create an InfoPath Form to Auto Populate Data in SharePoint 2010

    In Anne Stenberg's Blog from 2 Nov 2011 3:00 PM "How to Create an InfoPath Form to Auto Populate Data in SharePoint 2010" she artfully steps through how to create an InfoPath Form to Auto Populate Data. It works but... Jason, another user, 
    wrote whenever the form is opened again either to view or edit, it displays the current users information instead of the value of the person who completed the form in the first place.
    Anne's response was "Hi Jason - I had forgotten I had that problem, too. Change the Form Load rule's condition to
    DisplayName is blank and that should work."
    My problem is I can't find anything other than AccountName in "Select a Field or Group" [GetUserProfileByName (Secondary)] to use in the Condition statement that will correct the problem.
    Any help will be very appreciated.
    Thanks,
    Joe

    Hi Joe,
    I recommend to add one more condition in Form Load to make the form not be populated with current user’s information (You can change Title to another column which should not be blank when users create a new item).
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Seeking Pdf form help - javascript formula to auto-populate fields based on data from other fields.

    Hi there, I am new to PDF form work, and am wondering if someone could help me with a javascript formula.
    I want to auto-populate the EXPIRYDATE field, as the same date as the entered AUTHORIZATIONDATE field, but 4 years later.
    So, I want to be able to enter 11/14/2014 in the AUTHORIZATIONDATE date, and have 11/14/2018 auto populate in the EXPIRYDATE field.
    Seems simple I know, but I've messed around quite a bit and can't seem to make it work. Is this possible??
    Any help would be very much appreciated!!

    And what have you done?
    This can only be done with custom JavaScript programing.
    The value of date type fields are text field and not numeric data. The first task is to convert the dates to a number on some type of number sequence that is a mapping to dates.
    Have you looked at the Acrobat JavaScript API Reference, the MDN JavaScript reference?
    I would use the Acrobat JavaScript util.scand to covert the date string to the number of milliseconds from January 1, 1970 midnight. and then use the getFullYear method of the date object for the year value and add 4 years to that value and then use the setFullYear method to set the year for the date object. Now you can use the util.printd method to format the date object as a date string with a specific format.
    // get the date value, format of date string and years to add;
    var cDate = "11/14/2014"; // date value;
    var cFormat = "mm/dd/yyyy"; // date format;
    var nYears = 4; // years to add;
    // convert date string to date object;
    var oDate = util.scand(cFormat, cDate);
    if(oDate == null) {
    app.alert("Error converting " + cDate + " using format " + cFormat, 0, 1);
    // add years to date object;
    oDate.setFullYear(oDate.getFullYear() + nYears);
    // display result;
    var cExpireyDate = util.printd(cFormat, oDate);
    app.alert("Authorization Date: " + cDate + "." +
    "\nExpire Date: " + cExpireyDate, 3, 0);

  • Can Acrobat auto populate a date field upon digital signature of a form?

    We use several fillable forms with digital ID signature fields.  A business rule requires a date field next to the signature field.  Is it possible to define the date field to auto populate once the user signs the form?  I can't check this in Acrobat since I only have the reader.

    Hi,
    The short answer is yes, but of course you'll need to get Acrobat to edit the PDF file.
    Generically, here is what  you are looking to do:
    Open the Digital Signature Properties dialog
    Select the Signed tab
    Select the This script executes when the field is signed radio button
    Click the Edit button
    Add the code snippet below to the JavaScript editor
    Click the OK button on the JavaScript editor
    Click the Close button on the Digital Signature Properties dialog
    // JavaScript code to add the date at signing time
        var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()
        var signingTime = day +"/"+month+"/"+year  //Modify into your preferred format
        var f = this.getField("Text1");  //Modify the field name as necessary
        f.value = signingTime;
    Good luck,
    Steve

  • Multiple Forms Auto Populate on input of customer id number?

    Hi
    Wondering if there is a way that forms can auto populate information regarding customer input data if a separate form is used?
    Process is Registration this is customer registration process with member details for term and level details.
    Then Request Service Form
    Request Repair Order Form
    Not sure if I'm describing the above in a manner which is clear to my needs but simply want the next form to auto populate info for customer info fields
    when they or staff internally use the form to schedule services thereafter - ?
    Thanks

    Hi,
    Unfortunately, this functionality is not available with Forms Central.
    Regards,
    Nakul

  • Tabular form - how to auto populate a column with the user name

    Hi,
    I have a tabular form with 3 columns - (customer name, notes, user). my users are allowed to enter customer details in the notes section... as soon as the user completes notes section and save the form, I want "USER" field to be auto populate with the user name so that I may track activity by the user...
    Please advice how to accomplish it...
    thanks in advance

    Hi,
    After user saves the forms that means commit to the database, so you can simply write a trigger like:
    CREATE OR REPLACE TRIGGER "AUDIT"
    before insert or update on TABLE1
    for each row
    begin
    :new.user_field := nvl(v('APP_USER'),user);
    end;
    Regards,
    Aljaz
    Edited by: Aljaz on 4.3.2012 22:03

  • Auto populate forms from a database

    I'm new to LiveCycle and was wondering if there is a way to auto populate a form created in LiveCycle. Essentially, I have an Excel spreadsheet with a thousand or so entries. I'm looking to create a sort of cover page from all this data for each individual entry featuring name, address, etc. I can convert the spreadsheet to an XML file, but after that I get lost. Is there a way to set up a form so that it can autocomplete all of the fields using an XML file or is this something that I need to do manually?

    LiveCycle Forms is designed to accept a form template and an XML datastream and merge them together to provide a populated PDF that is interactive.  For a non-interactive version of the template LiveCycle Output would be utilized.  There are a number of methods to interact with LiveCycle but it sounds like the easiest method for you would be to use a watched folder where you would simply copy your XML files and LiveCycle will read the file and produce the PDF files.  To start use Workbench and create a process that uses the RenderPDFForm operation.  You might want to start with these http://www.adobe.com/devnet/livecycle/videotraining.html

  • How do you auto populate a date in a different text field after someone digitally signs the PDF form?

    I am trying to auto populate a date in a text box on the upper right hand corner of my document after someone digitally signs it. Is this possible? How do you do this?

    Go to the Properties of the Digital Signature field and under the Signed tab enter this JS code, under the last option:
    this.getField("SignDate").value = util.printd("mm/dd/yyyy", new Date());
    this.getField("SignDate").defaultValue =this.getField("SignDate").valueAsString;
    Of course, you can adjust the field name and the date format used in the script above.

  • How do I auto populate the date into text fields when form is first opened?

    Hello,
    I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
    I am working in Adobe Acrobat 9.
    Thank you,
    Sheri

    When you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.

Maybe you are looking for

  • I am looking for a fool-proof way to share files between Mac 10.6 and Win 7

    I need to share files BOTH WAYS between Mac OS 10.6 (latest rev - 10.6.3 at the time of this post) and Windows 7 Premium. Both computers are on a private network and both are on the same workgroup. I followed this tutorial: http://macs.about.com/od/f

  • Itunes problems with Windows 8.1 and Iphone 4S

    I can't sync my Iphone 4 S to my Itunes.  I get the following error:  "This Iphone can not be used because the required software is not installed. Run the Itunes installer to remove itunes then install the 64bit version of Itunes."  I am running the

  • Error when starting CCM

    When i try to start the CCM i get the following error message: "The procedure entry point?CanStackDump@SLogger@CXLib400@@SA_NXZ could not be located in the dynamic link library CXLibw-4-0.dll" Any ideas how to fix this? I don't want to do a complete

  • Error Emails from BPM Process Administration Console

    I am able to send error email to a single e-mail Id after configuring it in BPM Process Administrator(Engine-Networking tab). How do I sent e-mail to multiple user? I tried comma separated. It didnt work. Anyone can help on this? I get error somethin

  • WRT160N Help !

    Hey forum, I have a couple of questions regarding how to secure my wireless connection from others around me. This  is what my network is looking like, but I think my wireless connection isn't correct with that image. I have my wireless router connec