Can a user override the Current Date field?

I have a simple form with a Current Date field.  Today's date is automatically populated in this field, but I would like to give users the option to enter a different date in the field.  There is a value called "Calculated - User Can Override" but this doesn't appear to work.

When I first set up this field I used code I found on this forum that went in the 'layout:ready' area.  I've now removed it and used the code I found in your file in 'calculate'. The date field is now functioning properly.
Thank you.

Similar Messages

  • User start date can not be before the current date

    I'm creating users using the Reconciliation engine. The start date attribute doesn't appear to be reconciling. I get many different types of parse errors. The closest I appear to get is when I set the Xellerate User resource object recon field to have Start date as a date field, i receive the error:
    "User start date can not be before the current date.".
    I'm using 9.0.1.1. And I AM trying to create a user that has a start date before todays date.

    Resolution was to patch to 9.0.1.1578

  • Adding a year to the current date field

    Hello,
    Can any one please help on how to add a year to the current date field.
    e.g 7/19/2011 plus a year = 7/19/2012
    Thanks,
    Han Dao

    If you had a field DateTimeField1 and wanted to display the following year in DateTimeField2, you could do the following in JavaScript;
    var d1 = util.scand("yyyy-mm-dd", DateTimeField1.rawValue);
    if (d1 !== null)
    d1.setFullYear(d1.getFullYear()+1);
    DateTimeField2.rawValue = util.printd("yyyy-mm-dd", d1);
    Good luck
    Bruce

  • Changeable Current Date field

    I need the "Current Date" field enabled to be changed by the user. Any help will be appreciated.
    I thought the "Calculated - User can Override" would work but no such luck! (I am using the Custom - Current Date field)
    Thanks

    Hi,
    The custom current date has the script in the layout:ready event. This fires everytime the user exits an object that has been changed.
    So what is happening is that the user can access the date field and change the value, however when they exit the field, the layout:ready event fires and the user-entered data is overwritten by the current date.
    You could move the script from the layout:ready event to the docReady event. This is a good event because it only fires once, when the form is opened/rendered.
    You will probably need to wrap the script in an if statement, so that when the form is reopened, it does not overwrite the date. The following FormCalc should work:
    // Current Date in short-style date format.
    if (HasValue($) eq "false") then
         $.rawValue = num2date(date(), "DD.MM.YYYY")
    endif
    There is an example here: https://acrobat.com/#d=QR1y1RYatwSaQAWa4-jLlA
    You can see events and how they fire here: http://assure.ly/gW3RNr
    Hope that helps,
    Niall

  • Current Date Field question

    Hello
    I'm a novice user of LiveCycle and I'm trying to see if there's a solution for this issue we've come across.
    We've used LiveCycle to redesign human resource/payroll forms in our organization. One of the items we use is the current date field, which automatically populates to today's date once opened. When users complete forms, we encourage them to save an electronic copy of the form to their own drive in case they need to retrieve it at a later date. The problem here is that the current date field will not stay static once filled out and saved.
    For example, if a dept completes a form on 12/1/10, saves it, but then needs to retrieve it later for some reason, we need the current date field to stay as the date the form was originally filled out (12/1/10). If they retrieve the form later on say 2/15/10, that particular date field will read the new date. Is this possible?
    Thanks for any help!

    Test if the field is null before assigning the current date.
    // form1.page1.currentDate::ready:layout - (FormCalc, client)
    if (this.isNull) then
      $.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY"))
    endif
    Steve

  • Embedding a "Current Date" field in a pdf document

    To assure people work to the latest authorized version of a procedure, we let them access a protected pdf version on our Intranet. They can print a copy for use, but the copy is valid ONLY for the date printed, which is shown in the footer of each page. The "current date" field is updated when the document is opened by way of a Java script that reads:
    var f = this.getField("Today");
    f.value = util.printd("mm/dd/yyyy", new Date());
    (Obviously, "Today" is the field's name.)
    If a person were to open the same document three days later, that later date would be embedded.
    All this worked well when we were using Acrobat 5 and Reader 5. Now, to keep up with the times, we've upgraded to Acrobat 8 and Reader 8 on many PCs. However, the "current date" field still works for those still using Reader 5 but doesn't work for those using Reader 8.
    What I'm wondering is whether the scripting has changed for Acrobat 8. I can't find anything in the Acrobat support documents for Java scripting, but I may not know what I'm looking at.
    Thanks,
    Jerry Holt
    [email protected]

    The problem has been solved!!!
    The form field, the accompanying script, and most documents' security were set up in Adobe 4.0. However, in Adobe Reader 7 or higher, "no changes" means "no changes," so the form field script was blocked.
    By setting Compatibility to "Acrobat 7.0 or greater," I could choose the "Change Allowed" option: Filling in form fields and signing existing signature fields.
    Then, all I needed to do was to confirm that the JavaScript "Today" was still applied, and the current date was immediately filled in.
    Thanks for the questions and suggestions.

  • Prob in populating the current date in drop down

    I want to get the current date into a drop down list.
    There are three drop down.
    1.Month 2. Day 3. Year.
    If anytime the page loads there should be current date in the drop down list. and if any one wants to change he can change the date accordingly.
    Can any one help me in sorting out this prob.
    I can think of getting the current date in the drop down by keeping it in the 1st option of the select tag. But when you click on the list the current date is not at proper location compared to other numbers in the list.
    Please reply.
    Message was edited by:
    aniketh_parmar

    function addit(){
    var dd = new Date();
    var yearnow = dd.getFullYear(); //gets 4 digit year
    //use getDate() & getMonth() methods in seperate fns, and populate
    //date and months
    for (var i=yearnow; i <= yearnow + 25 ;++i){
    addOption(document.getElementById("year"), i, i);
    function addOption(selectbox,text,value)
    var optn = document.createElement("OPTION");
    optn.text = text;
    optn.value = value;
    selectbox.options.add(optn);
    }in your jsp:
    <body onload="addit();">
    <form>
    <select name="month">
    </select>
    <select name="day">
    </select>
    <select name="year">
    </select>
    Have a seperate fn, and using the above 3 methods get
    today's (current) month, day & year.
    then something like,
    document.getElementById("year").selectedIndex = currYear;
    document.getElementById("month").selectedIndex = currMonth; //0 is Jan and 11 is Dec
    document.getElementById("day").selectedIndex = currDate;

  • Restricting date selection of the calender date field

    Right now we have a web app where you choose the starting date of a work week. We're using the calender date field to get that date. However, our client wants to restrict that to just the Mondays of the month. Is it possible to do this?

    Hi Nagy,
    The way I would approach this is by implementing that kind of calendar picker myself, from some jQuery plugin or maybe a couple of simple dropdowns, and then use javascript to populate the current date field which would be hidden. You just have to make sure that the date format looks like this:
    03-Oct-2012
    Cheers,
    -mario

  • How can I set the date field to auto populate the current date?

    I have many forms to create where the current date dictates a specific change in options or conditions for the form filler to follow. I cannot see any way to handle that issue. Is it possible to simply set the current date as a default?
    jcytrny

    Sorry, we currently do not support having today's date show up in a date field by default
    Randy

  • Can a field be made to pull the current date from computer or internet and display it?

    Im making a form for someone and they want the current date of when the form is opened to be displayed at the top without having to type it in.  Is this possible?  I assume this has something to do with javascript but I dont know anything about that stuff

    Hi,
    I search something in the forum and found your message. If you need it once again, try this:
    var f = this.getField("currentDate");
    f.value = util.printd("dd.mm.yyyy",new Date());
    Or this one (helpful for Germans who want to display their date like this: 29. Juni 2010. If you take the first one in the dd. mmmm yyyy format, it shows you the month in English. 29. June 2010):
    var f = this.getField("currentDate");
    f.value = util.printd("date(de){DD. MMMM YYYY}", new Date(), true);

  • Can I make a checkbox populate the current date?

    I've been asked to make a form that has quite a few checkboxes.  These checkboxes also need to be marked with a date when checked off.
    Rather than have the person filling out the form type the date every time they check the box, they request that when the user clicks the checkbox that a current date show next to the checkbox.
    I don't know if this can be done with a current date stamp or with having a text box that populates with the current date, etc.
    The forms are also going to be used throughout multiple days, so I can't just call on a "current date" and show/hide that text box like I had originally thought to do.
    I'm also really green to scripting so any help or guidance in the right direction would be much appreciated.
    Thank you.

    The following Mouse Up script for a check box will set the associated text field to the current data when it's selected, and blank the field when not:
    // Mouse Up script for check box
    (function () {
        // Get a reference to the text field
        var f = getField("text1");
        // Set the value of the text field
        if (event.target.value !== "Off") {
            f.value = util.printd("mm/dd/yyyy", new Date());
        } else {
            f.value = "";
    Replace "text1" with the name of the associated text field.

  • How do I add a current date to a form field so that it will give me the current date each time it is opened?

    I have adobe 9 pro. I am currently adding fields to a document and would like my date field to display the current date when the document is opened so that the user does not have to enter the date each time. How do I do that?

    Have you searched for this issue. It has been answered many times.
    Example Acrobat JavaScripts
    Scroll down to the . Insert Today's Date into Form Field section.

  • To extend SAP user date and to add months to the current date

    Hi All,
    I need to extent the user date in SAP based on one condition.
    If the condition is true extend the date by 12 monthd if false 6 months from the current date.
    Can i have the FM for user date extentions and FM for getting the date.
    Thanks,
    Chandu.

    Hi ,
    You can use this FM for exteding the date.
    CALL FUNCTION 'BAPI_USER_CHANGE'
        EXPORTING
          username   = us_username
          logondata  = e_bapilogond
          logondatax = e_bapilogondx
        TABLES
          return     = i_return.
    u need to pass date and correspoing flag also.
    For extension of the date by months u can use this FM.
          CALL FUNCTION 'MONTH_PLUS_DETERMINE'
            EXPORTING
              months  = 6 or 12 ( depending up on ur logic)
              olddate = sy-datum
            IMPORTING
              newdate = us_expdate.
    Thanks and regards.
    Sham

  • How can I make the current date/time be sent when emailing as XML?

    I'm creating a form for a customer to use for submitting print jobs. This customer will be emailing the XML form data, which will in turn be converted into a production order. I'd like to make the PDF form capture my customer's system time, so that I know when they filled out the form. I COULD just leave that up up the customer and use required current date and time fields, but that provides the ability for the customer to falsify that information.
    Is there any good way to capture the current date/time in the XML data, so that the customer doesn't need to nor has the ability to?
    Any suggestions would be great!

    You can use the following methods getHours(),getMinutes(), and getSeconds() from the date object to obtain the values for hour,minute,and second.
    Click here to see an example:
    http://66.34.186.88/LiveCycleSamples/.3bbc2f4b.pdf

  • How do I insert the current date to hidden field?

    I have a form for updating personal information.  There is a field in the table called "dateupdated" that I would like to have on the form as a hiddent field that will automatically get the latest date (now).
    Any idea's how I can set the hiddden field to current date?
    Thanks,  Dennis

    You don't need a hidden field to do that. Depending on the database you're using, you can either use a TIMESTAMP column (in MySQL) that is automatically updated, or you can use a SQL function to insert the current date.
    For example, in PHP, you can use NOW() like this in a SQL query:
    $insertSQL = sprintf("INSERT INTO date_test (created, message) VALUES (NOW(), %s)",
                           GetSQLValueString($_POST['message'], "text"));

Maybe you are looking for

  • Count(1) returns null in group by

    hi gems..good afternoon.. I read that the COUNT() function always returns 0 (zero) if there is no matching rows in the table. The following code returns the 0 as expected: SELECT COUNT(1) FROM book_table              WHERE client_id = 10009          

  • Duplicate a report

    Hello, I'd like to know if there is a way to duplicate, save as or copy the report on one tab to another tab without having to copy each element of the report individually. Thank you Tracy

  • Powershell to export all vm's on the vcenter with snapshot created.

    Hi, I have Commvault backup server taking snapshots of 100's of production server and backup server leaving some of the server snapshot unconsolidated after taking a back, So my question or requirement is I need to pull all server with their snapshot

  • Regarding the Query Creation Date

    Dear All, How Can I find the creation date of querries which I have done in query designer. Is there any Infoobject keeping track of this data (SAP DEFINED). Pls post msg as soon as possible.

  • What are sxx files in forms90 folder?

    9iAS 9.0.2.3.0 Forms 9.0.2.12.2 We use Web forms on Windows 2000. In our %9iASOracleHome%\forms90 directory, we see files like s1ns s2io s2j4 s2ls s2po s2to s2ts s3gc s41o s48s s49k together with ifweb90_dump_[number] files. I can safely delete the i