How can I force users to enter the particular format?

I am using Livecycle Designer ES2 ships with Acrobat X Pro.

I have a form where the field is calculated from the date of birth field.  The date of birth field (DDN) is a date/time field.  Age (Age) is a numeric field.

Problem is: when the user enters on 01/01/01 shows age as 101.  When the user between 01/01/2001 age shows 1.  All models are set to dd/mm/yyyy.  Is it possible to forbid the user to continue to the next field until the correct format is entered?  I am open to all ideas that will achieve the result desrired.  I am new to livecycle and javascript.  I suspect an easy solution, but I can't seem to find during research, forums, or the help of LD menu.

I have attached the script to the field where it is useful.

Age::calculate - (JavaScript, client)

var ageInYears = 0;

Date of birth of var = new Date();

If (DOB.rawValue! = null)

{

Get the current date and convert date entered by the user to a Date object.

var curDate = new Date();

birthDate.setTime (Date.parse (DOB.editValue));

Define the initial age, current year - year of birth

ageInYears = curDate.getFullYear () - birthDate.getFullYear ();

If we have not reached the month of birth and yet, not even 1 year more...

If (curDate.getMonth (), birthDate.getMonth ())

-ageInYears;

If this month is the same as the month of birth, but we have not reached the

date of birth and yet, not even 1 year more...

If (curDate.getMonth () == birthDate.getMonth ())

If (curDate.getDate (), birthDate.getDate ())

-ageInYears;

Age of the value in the result field.

this.rawValue = ageInYears;

}

In the output event from the date of the birth box set (in formcalc):

If (Date2Num ($.formattedValue, "MM/DD/YYYY") == 0) then

$=""

endif

then under object > value just make sure you put a message in the 'Message Validation model"saying something like:"enter the date in the format MM/DD/YYYY ".

Tags: Adobe LiveCycle

Similar Questions

  • How can I force users to clear the cache?

    Is it possible to have the user cache clear when my new muse site loading, so that my old site files don't load their computer?

    Hi Perun,

    Please visit the following link Cache issue.

    Kind regards

    Aish

  • URG: How can I force APEX to use the specific schema: spaces of work APEX_040100 or entitled to another schema?

    Hi all

    Here's the scenario:

    1. My computer crashed. were to return to complete export (expdp 11.2.x to impdp 12 c). successfully done.
    2. Configured ADR blah blah... can access the admin of the apex.
    3. Problem is: administration interface does not SEE my workspaces apex Apex (only the workspace IN-HOUSE).
    4. After investigation it seems that APEX (after the upgrade) is somehow configured / run with: schema APEX_040200 and not

    APEX_040100 (as I have improved Apex in the old database versions).


    5. If I'm running the following:

    ALTER session set current_schema = APEX_040100;

    Select short_name, display_name

    of wwv_flow_companies

    where source_identifier is not null;


    I SEE all my beloved workspaces.

    6 my questions:

    a. How can I force APEX to use the specific schema: APEX_040100 instead of APEX_040200?

    b. or are there other alternatives to assign these workspaces in the current environment?


    Concerning

    Etay G

    Hello Brad,

    Thank you for your response. Appreciated.

    • Yet, as I had a little corrupted environment Apex after import (impdp), COMPREHENSIVE database this method of revocation (above) has failed several times to me.
    • Here's what I have (solves the problem):
    • Deleted APEX_040200 Apex 4.2 installation().
    • Text left in DB is the only APEX_040100
    • Then, the version 5.0.3 and it worked!

    More importantly, after the installation of APEX, all workspaces, users, etc. are automatically correctly resided in APEX.
    • I think that if you have only 1 version of apex corrupted in DB. It should work as well. Remove again, schema using the above script (check version) with caution (after backup, etc.).

    Kind regards

    Etay G

  • How can I force a reset of the device?

    My code crushes several modules and also makes changes to the Group module that contains these modules.  I then calls CodeModuleManager.promptForResetIfRequired (), but the BB do not think that a reset is required.  (I also called CodeModuleManager.IsResetRequired (), and he returned false.

    However the new modules I've written are not taking effect until after the BB is reset (I've tested by removing the battery).

    How can I force a reset of the device from my Java code?

    Thank you

    Paul

    Take a look at this thread. You might get an idea.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=13762#M13762

    Concerning

    Bika

  • Plugin deleted Adobe. Default values defined for the Standard Adobe. I have Firefox ask to install the plugin. How can I force Adobe to use the standard?

    Adobe Reader won't open some Adobe (large) files.
    > I updated Adobe Standard all of Firefox's default values. Firefox continues to use Adobe Reader.
    > Uninstalled Adobe Reader. Uninstalled Firefox Adobe plugin.
    > When I try to open a file "Adobe", Firefox now says to install the Adobe Plugin.
    ... catch - 22.
    What can I do to force Firefox to use Adobe Standard? (none of the moderator seems to work)

    These steps can help as well:

    Delete the mimeTypes.rdf file in the Firefox profile folder to reset all the actions file.

    Set the pref pdfjs.disabled true on the topic: config page to disable the build-in the PDF Viewer.

    Check the value of pref plugin.disable_full_page_plugin_for_types on the topic: config page and delete the application/pdf if it is present, or reset the default pref via the context menu.

  • How can HP laserjet p1102w I enter the password for the wifi connection?

    My wireless net work has a password and I can connect my PC but the printer will not connect.  How including the password for the printer to connect?

    Here is your support page.  You will need to download the manual and read how to connect.

    http://h10025.www1.HP.com/ewfrf/wc/product?cc=us&DLC=en&LC=en&product=4110396

    You have no cover, so you will need a USB cable to transfer the settings to the printer wireless.  Read all labels and objects.

  • VMware Workstation Pro 12. How can I force a prompt for the "move" or "copy".

    moved image to a new machine.

    I thought I chose "move" not "copy" when the image was first started.

    When the performance of the machine, I get a prompt to "reactivate" the windows. However the machine, I moved the virtual machine on a host computer that does not have internet access.

    the virtual machine image is for the laboratory and development.

    When I try to restore the image, he continues to assume it is 'copied '. I need to reset the picture to ask if he was "moved" anew. how far do is?

    Hello

    This logic you "reset" by moving it to a different folder location.

    --

    Wil

  • I have 10 windows and want to drive DC my default PDF reader.  Even if I put it by default, Windows insists on the use of E (new browser) when I try to open a .pdf file.  How can I force Windows to accept the default player?

    The caption explains my problem, that started after the recent update of Windows 10.  Even if the reader asks if I want to make the default value, and even if I click on Yes and then agree that drive to make changes to my computer (probably the registry), the next time I try to open a .pdf file comes from the browser.  In addition, when I open the drive I can't find a way to open a file in it, which leaves me stuck with the browser rather than drive for all the .pdf files.  What can I do?

    Hi robertb98559829,

    If in the case where it does not drive as default value when the application of the parameters of the application, then we need to change the default OS property values.

    Please, try the following:

    Close the player or any other application using the PDF

    Go to control panel > default programs > associate a type of file or Protocol with a program

    Since scrolling list file Type down to the type of PDF file.

    Click on it to select it.

    Click the Change program button at the top right

    On the next dialog box, select Adobe Acrobat Reader and click OK

    Then close

    Now, try to open a PDF by double clicking on it.

    I would like to know if it works.

  • How can I force a download of the file via a hyperlink in Muse cc?

    I have a PDF file that I would automatically download when you click on a link instead of opening a preview in the browser.  Is it possible to do using Muse CC?

    Please refer to the answer of Lance here:

    https://forums.Adobe.com/thread/1268063

    Thank you

    Sanjit

  • How can we force to use for locale-specific formatting of data?

    Hi all

    I use the Date/Time Format string to format the current date to a formatted string, I'm precise %b to show the short month, but this parameter is dependent on the local host. What is a way to force the format on a local data instead of using the regional settings of the OS? Thank you.

    I don't believe it. The simplest solution would be to call the DateTime in seconds function, extract the resulting month value of the cluster then use a lookup table to determine the name of the month.

    The table of correspondence could be as simple as a multiline string is indexed with the Line Pick function using months as the row index.

  • How can I watch my videos with the .mov format

    Please help, I can't watch my videos because system does not format .mov, I have Quick Time Player and tellme 2048 error thanks

    Hello

    Follow the steps in the article below to solve the problem

    QuickTime MPEG-2 Playback component: error - 2048 when opening files containing video MPEG-2


    http://support.Apple.com/kb/TS2535

     

  • How can I remove USER ACTIVE when I go into my PC, please? __

    How can I remove USER ACTIVE on the screen when I'm on

    computer, please?

    sikki14

    Sounds like you might want to take a look at: How to disable the functionality of quick-change to user in Windows Vista

  • How can I force Acrobat Professional 11 users to use the "save under" verses "Save"?

    How can I force Acrobat Professional 11 users to use the "save under" verses "Save"?  I want users to type in a form to fill out, but not to save their changes to the original formula.  I want them to be able to save with a different file name.

    You can not force it really, but you can encourage it... For example, you can set the file read-only and add a statement to do it before the file is saved using a script.

  • How can I force a send this page if the user presses a tab?

    This may be obvious buy I start everything just with the APEX then maybe someone can tell me...
    How can I force a send this page if the user presses a tab and they go to another page before I run the backup of page variables?
    Thank you!!!
    C

    Hello

    If you use version 4.x Apex while you can create a dynamic action for this.

    * If this answer is useful or appropriate then please mark and award points.

  • How can I force < pre > (or [code] bbcode) tags for the return to the line?

    I recently spent 12 Opera to Firefox.

    I use the world of Warcraft UI and Macros forum a lot and I use the {code} tag when posting scripts or macros.

    In Opera, {code} tags would be word wrap nicely, allowing me to see the whole code block;
    http://i.imgur.com/AhJJwHH.jpg

    However, in Firefox, the {code} tag not dress and gives me a horizontal scroll bar;
    http://i.imgur.com/CC6nwSi.jpg

    How can we force pre or {code} tags to word wrap in FIrefox? I guess I could get around this behavior with the CSS styles, but I'm a complete noob to how to start even with that. A tutorial step by step would be best.

    Thanks in advance.

    Then, you add the selector code as well.

    code, pre {
    white-space:pre-wrap !important;
    word-wrap:break-word !important;
    }

Maybe you are looking for