check box for fills the fields


Hello

I have a column of text fields named date1, date2, date3... all the way to date10.  I would like to include a check box if the user enters a date in the field "date1" then checks the checkbox, it could fill the remaining fields with this value.  Someone would have the script for this.

Thank you very much.

You can use this code as the script of the mouse upward to the checkbox:

if (event.target.value!="Off") {
    var v = this.getField("date1").valueAsString;
    for (var i=2; i<=10; i++) {
        this.getField("date"+i).value = v;
    }
}

Tags: Acrobat

Similar Questions

  • Using a check box for autopopulate other fields (= ship Bill to)

    I checked the other threads and don't know what I have to do.

    I have NO experience of script and am using LC Designer ES 8.2.

    The form I designed will be finally sent to customers for them to fill out using Adobe Reader.

    I have two sections - a "Bill" and a "ship to" and they are areas of free text to one drop down to "country".

    What I want to do is to put a check box on the form that says "Bill is identical to ship to.

    If the user clicks on the box, the data should autopopulate the other fields.  If they "UN-click on ' the box, the data goes.

    Script is WAY above my head and scares me but I peut follow directions.

    Can someone help me?

    Chuck,

    First off apologize not to ask a question... no question is stupid.

    Secondly, the script of your checkbox is on the bad event.  Looking at your screenshot, you placed on the 'click' event... should be placed on the 'change' event See screen capture below.

    Then, the script should be (for example):

    If (this.rawValue == 1) {}

    Company2.RawValue = Company1.rawValue;

    }

    If (this.rawValue == 0) {}

    Company2.RawValue = "";

    }

    Finally, it's just a suggestion...  Since you make the box (same as ship to... which means that the Bill for info would be the same as the ship for info) I make the column 'Bill To' the second column and make the ShipTo the first column so users enter the Ship To news first. In my example, company 1 represents the ShipTo, a Company 2 BillTo nd. When the user checks the box (checkbox value == 1), the news of billto are filled by the ship to info data entered and when unchecked (checkbox value == 0), the billto fields are empty... so (Company2.rawValue = "" ;))

  • The check box for "see windows contents while dragging", shoots himself

    The check box for "see windows contents while dragging", shoots himself.    Irritating!   Any ideas?

    Hi Mr_Sleeze,

    See if you can set a registry key verification:
    How to use Group Policy to configure auditing of Windows registry keys
    (The above article was written for Windows XP Home edition, but should work as well under Vista).

    DragFullWindows is the value you want to monitor.
    http://TechNet.Microsoft.com/en-us/library/cc787526.aspx Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • Data received, press CHECK BOX to print the last page

    Aloha

    I have an old HP Laser 4200 Jet that has been the back BONE of my business! I worked perfectly except for the last two days!

    He give me a "data received press CHECK BOX to print the last page" and print a portion of the last page with or without printing of the

    previous pages! It just started happening! Over the other day, I have my children of girlfriends! Is it possible that they pressed a button?

    I reset, but this problem persists! Help!

    SLY

    Hi Sly,

    Welcome to the Customer Support Forums!  I'll lock this accidental double post and lead everyone on this subject.  This will keep all your answers in one easy to find place.

    If you have any questions or concerns about this, feel free to contact me by private Message.  Thank you!

    Message edited by SandyD on 06/06/2009 17:07
  • Clear the check box according to the value of column DB

    Hello
    My requirement is to disable the check box according to the value of a column DB. Say for example my report displays the following. Check box, the name of the EMP, Dept. If the Department is the checkbox should be disabled and user should not be able to select the check box.
    Ask your help for a solution.
    Thank you
    Prasanth

    You must use the parameter p_attributes of the apex_item.checkbox API to make the boxes off (readonly do not work with the checkboxes)

    SELECT ..
    CASE WHEN  THEN APEX_ITEM.CHECKBOX(1,)
                         ELSE APEX_ITEM.CHECKBOX(1,,'disabled="disabled"')
              END 
      ..
    
  • With value of check box for show/hide radio buttons?

    I have created a pdf form. I have a checkbox and radio buttons several. I put it so radio buttons are hidden until the user clicks on the checkbox above him. I also put the box reset option on mouse-to top buttons. However, radio buttons are always selectable. I want to assure you that if one of the radio options is selected, the check box to be checked as well.

    Is there a bit of javascript, I could add to the check box to hide the option buttons if its value is not equal to yes (checked)?

    You can use code similar to

    If (event.target.value == 'Yes') {}
    selected - display radio buttons
    this.getField('Radio_Button1').display = display.visible; view the radio button
    } else {}
    Show box unchecked hide radio button and reset the field
    this.getField('Radio_Button1').display = display.hidden; Hide radio button
    this.resetForm (["Radio Button1'"]); Disable the option button
    }

    But YOY will have to change the field "Radio Button1" name match your fyouor domain name to the Group of radio buttons.

  • Check box to change the value of the field and reveal hidden text

    Hello

    I need to change a value in a field when you press a checkbox

    the default value can be $ 10 in 'formfield1 '.

    But when the checbox is checked, the value of 'formfield1' must spend $ 8

    I also need a reval text function in "textfield2' of the text hidden to visible.

    Is it still possible to combine in a box?

    I found a code on the forum and changed it, but it does not work as expected, it affects the field, it shouldn't and it behaves a bit funny, here is the code to calculate.

    I also tried to change the value of Off to On, but who has not reversed the procedure than I hoped.

    Well its a start, maybe someone can understand a give me help on the way?

    ________________________________

    custom for the discount calculation

    var nDiscount = 2;

    name of the Sub total field

    var cSubTotal = "formfield1";

    name of the non-Discount checkbox

    var cbNonDiscount = "CheckBox1";

    default value for the non-Discount

    Event.Value = 10;

    see if the purchase is with discount or not non-Discount

    If (this.getField ("cbNonDiscount") .value == 'Off') {}

    Event.Value = this.getField ("cSubTotal") .value - nDiscount;

    }

    put an end to a custom calculation

    Ah, if you want the calculation to take place when the box is checked, use this:

    If (this.getField (cbNonDiscount) .value! = "Off") {}

    Instead:

    If (this.getField ("cbNonDiscount") .value == 'Off') {}

  • How to include check boxes for alternating line fill?

    I tried allowing alternating filling line before and after adding a column with checkboxes, but it just does not work - the entire column "will not participate" in the alternation of filler as all other columns don't. How can I make it work?

    Hi VarHyid,

    Worked for me.

    I inserted a new table 'ordinary' in an existing document to format a cell as a checkbox column, then clicked on the button in the Inspector to Format table, clicked on the alternative line color box, click on the color wheel and used the RGB sliders to set a color for the alternate rows (pairs).

    Note that I started with a "plain" table and that it did not apply fills all cells except through alternative line color. Any color fill applied to the cells will substitute the color defined by collour alternative line.

    Kind regards

    Barry

  • Select the check box for the table of the ADF

    Hi all

    I want to add the check box in front of each line. The user will select the row by clicking the box and going to treatment by clicking on a button.

    I just almost all possible discussions on OTN.

    What I've done so now
    1] added a transitional Boolean attribute in my VO. added as a selectBooleanCheckbox in .jspx page.
    [2] a button with backing bean that will do the processing. [He will pick up the attributes of all ranks and be written in a file]
    [* 3] it works fine if I use the default option of line by Ctel selection + A, or by pressing Ctrl + click or SHIFT + arrow key. Backing bean is not the issue.*
    [4] try to intercept the TableSelection Listner also.

    It comes

    When I select the check box, only the last selected line is processed and not all lines. How to make the selectable online by clicking on the checkbox.

    I use JDeveloper 11.1.1.5

    Refered links
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-row-selection-using-checkboxes/
    http://technology.AMIS.nl/2010/07/29/ADF-11g-select-all-rows-in-an-ADF-table/
    http://Sameh-Nassar.blogspot.nl/2009/12/use-checkbox-for-selecting-multiple.html
    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/99-checkbox-for-delete-in-table-1539659.PDF

    Mukesh.
    https://www.dropbox.com/s/1gqsaobgyjycie6/AddDeleteEmployees.rar
    
  • Since the upgrade to 5.0, my saved passwords do not work anymore - when I re - start, the check box for the saved passwords is unchecked.

    If I check the box 'Save password', when I stop and restart, the check mark disappears and the saved passwords no longer work. I have to check the box again after every start. Passwords are not lost: they simply do not work.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Check box to hide the subform does not

    I have what I think it's a pretty simple dilemma. I have a check box that will be used to show/hide a subform when checked/unchecked.

    However, any code that I have written seems to work. The box is an object in page1 and not wrapped in subforms. The subform has simply two inside text fields. the properties of the box have been defined for bind values are 1 for archiving, 0 for uncontrolled. The fields in the subform exploit the value "invisible" because I don't want to see these fields in the form (unless the box is checked).

    My code is:

    Form1. Page1.newspaper::click - (JavaScript, client)

    If (this.rawValue == 0) {}

    xfa.resolveNode ("form1..") Presence Page1.Newspaper_Subform") ="hidden ";

    }

    else {}

    xfa.resolveNode ("form1..") Presence Page1.Newspaper_Subform") ="visible ";

    }

    This code is located in the under JavaScript click event. The form is saved in a dynamic XML form to Adobe. I use Adobe Pro XI and LC ss4

    I can do this work in the generator of the action, but I want the subform back to hidden when unchecked.

    Obviously, a beginner in Java script, ideas/help you might have would be appreciated.

    What exactly is the problem?  Is this not not showing or hiding not when you change the box?  According to your description, you have two text boxes the invisible value but your script changes only the presence of the subform.  If you show the subform without changing the presence of text boxes, they will remain invisible.  If you want all show/hide together, set the presence visible text boxes and simply change the subform presence as you are now.

  • Using an Excel spreadsheet to fill the fields

    Hello

    I am creating a form with LiveCycle Designer 8.2 where the user selects a field, and then a lot of fields is filled automatically based on the selection.  For example, the user selects the name of the project, on which they work and then project details (for example the location, owner, contact, industry, etc.) are automatically populated with the data from an Excel worksheet.

    I will distribute this form to a wider audience, so data that fills the form will have to "stay" with the form after the distribution.  The worksheet Excel should be sent with the form to get there?  Or the data automatically move with the form once it is sent?  If not, is there a better way to accomplish such a task?

    Examples would be extremely useful.

    Thank you!

    While you can create a PDF file from an Excel spreadsheet, the intention is to capture the appearance of the worksheet and not on the behavior associated with the worksheet. You must add objects in the designer to make the interactive form. In addition, you can use Excel data to populate list boxes and drop-down lists at the time of the design, but the worksheet has no relevance running.

    The simplest solution in my mind is to export data from Excel to a comma-delimited format and use the data to create one-dimensional arrays in the designer. The tables can be used to fill drop-down lists and drive the behavior of the form.

    By example, for a menu drop down called 'projectName' create an initialize event that calls a function in a script object called "loadProjects".

    Form1.Page1.Subform1.ProjectName::Initialize - (JavaScript, client)

    myScriptObject.loadProjects (this);

    The function loads the drop-down menu with the values in the table called "projects". On the exit "projectName" event, if a value is selected in the menu drop-down 'loadData' function is called to fill the 'rent' and the 'owner' based on the index of relative table. If a value is not selected in the drop-down fields 'rent' and the 'owner' are reset.

    Form1.Page1.Subform1.ProjectName::exit - (JavaScript, client)

    If {(this.isNull)

    Form1.Page1.Subform1.location.RawValue = null;

    Form1.Page1.Subform1.owner.RawValue = null;

    }

    else {}

    myScriptObject.loadData (this);

    }

    Form1. #variables [0] .myScriptObject - (JavaScript, client)

    projects of var = new Array ("","ABC","DEF", "GHI");

    localities of var = new Array ("","Sacramento","Ottawa", "Fernie");

    the owners of var = new Array("","Anne","Bruce","Carl");

    function loadProjects (dropdownField) {}

    for (var i = 0; i)< projects.length;="" i++)="">

    dropdownField.addItem (projects [i]);

    }

    }

    function loadData (dropdownField) {}

    Rentals [dropdownField.selectedIndex] = Form1.Page1.Subform1.location.RawValue;

    Form1.Page1.Subform1.owner.RawValue = owners [dropdownField.selectedIndex];

    }

    Steve

  • Check boxes for web application

    Hello.
    I use: Dreamweaver8 - PHP5.1.6 - MySQL5 - Apache2.2.3
    I am also new to this software.
    Hope you will guide me to it.


    ------------------------------------------------------------------------------------------ -
    Raw image:

    Several checkboxes (For example electrical, mechanical, chemical...)

    Function - Add or change

    Naming-
    E.g. electric - name: JobCategory | Checked the value: electric
    Mechanics - Name of the: JobCategory | Checked the value: mechanics

    Situation / need.
    When the user checks the properties 'Electric' and 'Mechanical', the database should contain something like 'Electric, mechanical' or 'electric & mechanical' or...

    Column name in the database: JobCategory
    ------------------------------------------------------------------------------------------ -


    My code only now allows me to have a single value in the column "JobCategory", although it uses checkboxes.
    The code was something like:

    $insertSQL = sprintf ("INSERT INTO candidate (...,...,...,...,...,...,...,...,...,...,...,...,...,..., JobCategory,...,...,...,...,...,...,...,...,...)") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) ",)
    .
    .
    .
    GetSQLValueString ($_POST [JobCategory], "text"), //JobCategory is the name of all the boxes
    .
    .
    .


    Thanks babe and dudes ~.
    My gratitude
    __SY__

    David powers :
    Thank you very much.
    It works fine now.
    I tested all of the checkboxes and all could be modified in the database.

    In the MySQL database (using phpMyAdmin):
    Set the type columndata in phpMyAdmin to SET. In the
    Length/values , enter as a comma
    list: 'a', 'b', 'c', etc.

    Set to the name of each box
    name = "ArrayName []".
    The pair of square brackets , it turns into a table.

    To the same top of the page, add this code :

    <>
    If (isset($_POST['JobCategory'])) {}
    $_POST ['JobCategory'] = implode (',', $_POST ['JobCategory']);
    }
    else {}
    $_POST ['JobCategory"] =";
    }
    ?>

    Before the first box , add this line of code to extract
    the values in the field in a table called $categories :

    Then change the code in the box like this:

    <>
    If (is_array ($categories) & in_array ("Electric", $categories))
    {echo ' checked = 'checked' ";}?} > />


    The conditional statement first checks to see that $categories is an array.
    This prevents an error if $row_rsEditCandidate ["JobCategory"] was empty.
    The code then looks for 'Electric' in the $categories table. Even if
    There is only one item in $row_rsEditCandidate ["JobCategory'],
    $categories will always be an array. Just replace "Electric" with the
    appropriate value for each check box.

  • How to get code signing keys without filling the field "company"?

    When you use RIM "Sensitive APIs" I am aware that I should get the signature keys and was directed to: https://www.blackberry.com/SignedKeys/

    When you enter information for my keys the field "Company" is required.

    This is why I'm a bit confused (questions below):

    * How the company is associated with these keys?
    * What happens if I change companies after obtaining the keys?
    * Is that my current employer, so I work? (ie: McDonald's, Burger King)
    * What happens if I am a student?
    * Can I create a company just to get the keys?
    * What happens if I put unemployment in the area of the company?
    * What happens if I set the self-employed in the field of the company?

    I have a job with a company (which is a good thing these days), but at home and as a software engineer and passionate about mobile I just began to develop blackberry applications and I wanted access to these very important APIs.

    Thank you.

    Carl

    Put independent Consultant or put your name. RIM expects you to work for a sort of cabinet when filling out the information, but if you're a solo developer so it makes sense to be put your name or a counselor, since you are the company of one of these two.

  • Combo box that fills the text box

    Greetings,

    Any help is appreciated.  I have a combo box with four choices, regrdless of the choice you made, I would that the choice to be sent to a text field.  I tried a few things but am really lost on how to get this working.  I tried the code initially but the syntax is obviously fake, but I know the WTO Fixez_ the.

    function setchoice()

    {

    If (Event.willCommit)

    {

    var selection = this.getField("options").event

    This.GetField ("Textfieldchoice") .setItems (choice);

    }

    }

    Any help would be greatly appreciated.

    Sincerely,

    Tim

    If the user has not always need to interact with the text field, simply set the field read-only and use the following script in the custom text field calculation script:

    Script will count for the text field.

    Copy the value of the drop-down list box in this area

    Event.Value = getField("your_combo").value;

    Replace "your_combo" with the actual name of your combo box field.

Maybe you are looking for