I don't want to allow a user to enter a date that is before January 2014

I don't want to allow a user to enter a date that is before January 2014. I want to restrict users from entering a date that is or prior to December 31, 2013 in a date field. Is this possible?

Seems like it is a little more complicated just to create a new Date() object in livecycle...
the way I found to create a new Date() object is using the dateTimeEdit pattern to be 'date{EEEE, MMMM D, YYYY}'
then u can create a new Date
var date1 = new Date(DateTimeField1.editValue);
date1.getTime();
or
you can also click the following link and download the pdf from the blog...
Adobe LiveCycle Designer Cookbooks by BR001: Date handling in Livecycle Designer ES forms
using XFADate object make it easy to manipulate dates with javascript
The XFADate object created by BR001 is very good but to be able to see if a date is prior to another date you can just add this function in the object script..
you can add that function at line 200...
that.isPriorTo = function(date) {
     var toDate = newDate(date);
     if (isNaN(this) || isNaN(toDate)){
          return false;
     } else{
          var interval = this.getTime() - toDate.getTime();
          if (interval > 0){
               return false;
          } else{
               return true;
To use that function above you can just use this code:
if (XFADate.newDate(dateFrom).isPriorTo(DateTo)){
     //dateFrom is prior to dateTo
hope this help

Similar Messages

  • How do I sync my iPad with my iTunes without it trying to put my iPod apps on the iPad?  I don't want to make separate accounts because then the apps that I want on both would have to be paid for twice.

    How do I sync my iPad with my iTunes without it trying to put my iPod apps on the iPad?  I don't want to make separate accounts because then the apps that I want on both would have to be paid for twice.

    No, they won't. Just create a second profile in iTunes for the iPad. You can then select only what you want synced to it completely separate from your iPod.
    Create a multiple user iTunes music library

  • I received a car charger for xmas. I have an iPhone 4. Is there a difference in the charging dock between the older and newer iphones? I don't want to damage it by shoving a cable in that is designed for a newer model.

    I received a car charger for xmas. I have an iPhone 4. Is there a difference in the charging dock between the older and newer iphones? I don't want to damage it by shoving a cable in that is designed for a newer model.

    there are 2 connectors the old pin30 and the new ligthing bolt
    they don't look very much alike so if anybody were damage byt forcing it in it would be their own fault seeing how diffrent they are

  • My ipad won't start up. I downloaded iTunes on my pc while my iPad was charging - could this have caused the problem? I don't want to restore to factory settings and lose data. Any ideas or solutions? Thanks, Linda

    My ipad won't start up.  I downloaded iTunes on my pc while my iPad was charging - could this have caused the problem? I don't want to restore to factory settings and lose data. I also recently successfully paired my ipad with a bluetooth keypad. Any ideas or solutions? Thanks, L

    FYI, your iPad will charge much faster if you plug it directly into an electrical outlet.
    When doing the reset, as Jackkcc suggests, make sure you let go of both buttons fairly promptly after the apple image appears, then wait another 10 seconds or so for the iPad to start up.  Note that a reset does not alter any data or settings.

  • We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be

    We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be able to put a date in another field that MRP can read in the event we choose to manufacture based on another date.  For example, early.
    Any help would be appreciated.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How to Restrict user to enter the data in CAPS ONLY

    Hi,
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    can any one help me on this.
    Karthik

    Hi,
    h1.
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    -------u need to set the CSS class for this item
    Regards
    Meher Irk
    Edited by: Meher Irk on Oct 24, 2010 11:16 AM

  • How do you allow multiple users share a common folder that is on the doc?

    I'm coming from many years as an OS 8.6 user. My family expects me to wade though all of the documentation and figure out how to make using the computer easy. One feature they liked was the way I set up the Apple Menu so that only the programs were listed. The categories were Applications, Diversions, Internet, and Utilities. This masked all of the other stuff that may have been associated with a program from them.
    I would like to do the same in OS X (10.4.7). So, in /users/shared I created a folder named of all things "Apple Menu". In this folder I've created new folders for Applications, Diversions, Internet, and Utilities. Into these folders I placed aliases to the various programs. I then took this folder and dragged it to the Doc. On my Doc, with I control click the "Apple Menu" folder, I see my folder names with drop downs listing all of the aliases just like in OS 8.6. Unfortunately, on the other user accounts after dragging the folder /users/shared/apple menu to the Doc, they can only see aliases to files that came with the system. They can not see any of the new files that I've added. How do I set this up so that I maintain one folder of the aliases to various programs and yet every account can see all of these aliases?
    I don't want the Doc cluttered with applications that are not used all of the time. At the same time I don't want to have to navigate to some sub-directory and scan a list of files looking for the application everytime I want to run it. The rest of my family members would go nuts. As a matter of fact, I think I would also. I liked the Apple Menu in OS 8.6. I think this Doc folder thing might just work, if I can get past this security/permissions issue.
    Thanks for the advice.
    Joe
    17" iMac G5   Mac OS X (10.4.7)   various Mac running OS 8.6

    Thanks for the suggestions offered so far, but they don't get to the root of the issue. I only want to maintain one, and only one, "Apple Menu" folder. I'm not looking to restrict user access. I'm trying to streamline user access for those who are not comfortable navigating down 2 or 3 or more levels of directories looking for the "applications". As Administrator I do this at the time an application is installed and place an alias to the application in the appropriate "Apple Menu" folder so that my family members can quickly and easily access it.
    I built the "Apple Menu" folder and placed it in /user/shared. I also built all of the aliases to the applications and placed them in the appropriate sub folder of "Apple Menu". I've chosen, "Applications", "Diversions", "Internet", and "Utilities" as the sub folders.
    Some of the aliases, while logged into a non-administrator account do not show up in the "Apple Menu" while others do. For example TextEdit appears while TextWrangler, which I installed does not. I thought that only programs that I installed are not showing up, but this is not true. I installed Reunion and this program is visible from the non-administrator accounts. Yet I can navigate to the item not appearing in the "Apple Menu" and launch it.
    The top folder's owner is myself, the group is "wheel" and it has read permission, and everyone has read permission. I've made myself and the other users members of the group wheel. And I've propogated these values down the folder hierarchy starting at "Apple Menu". I would like to know why this isn't working?
    Though Classic Apple Menu and XMenu sound like good alternatives in each case I would be responsible for setting these applications up in each environment. I only want to do this set up once as administrator and know that all of system's users have access to this information from the Dock.
    Is there some kind of installation step missing that is not permitting these aliases from being seen by all of the system's users?
    Again, thanks for the advice,
    Joe

  • I want to update to 3.6.4 but don't want to risk the problems container.exe is causing that am reading in this forum.

    There are quite a few having problems related to container.exe due to updating to 3.6.4 as I see from this forum.
    I don't have video problems, never did, and sounds like if I update, it's going to start having problems..
    It is possible for ff to make a patch so that we can have a user friendly and safe disable (without system code?)
    I appreciate firefox very much and thank you developers for your hard work and care.
    I just don't want to update until this is stable..too risky..
    Thanks!
    == Operating system ==
    winvist

    Also be aware that if you add a quiz to the project, that the drag and drop and quiz affect each other.
    In a way we have been cheated into thinking that is also a learning tool for repeated attempts. With a quiz in the project it does not work.
    I also tried it without the quiz. When learners now use it, the drag and drop will "hang" at times. EMBARRASING when a client phones you with a stuck learning session!!
    I have spent hours with the online Adobe dudes. It some or other "buG".
    "BUG" is IT code for "we designed something but did not test it well enough and now we pretend that it is some mysterious organic organism that is maliciously undermining our design"  

  • Want user to enter a date

    I am using Oracle 9i.
    I want the user to be able to enter a date and the report runs using values that are after this user inputted date, but am unsure how to do this. I have already created a user parameter that created a drop down list for the user to select something and then the report was run based on the selection. But I also want to run a report based on the date they enter.
    Sorry this is a bit rambling but is the best I can do! Any help on this would be great.
    Thanks

    Hi,
    Create a second user input date "p_user_input_date"
    make your drop down list optional .
    I mean add a NULL for the date parameter list.
    static list: blanc, dynamic list: append "union select '' from dual;" .
    then change the query where clause....
    with NVL(p_parameter_date, p_user_input_date);
    regards,
    CB

  • Allow standard users to save form data

    Apologies if this has been asked before, I did a search but didn't find anything.
    My client wants me to create a set of PDF forms that their sales team can use.  The crucial features are:
    Create a PDF with editable form fields
    All font, styles and layout cannot be editable by standard users (using free version of Reader)
    Users with standard Reader users can open, edit and save these forms including the data they contain
    The main thing my client wants to achieve is sending out sales documents that are always nicely formatted (users can't change text size, style, add random pictures, etc.)
    I have Adobe Pro version 9.4.5.  I've tried the following:
    Choose Advanced > Enable User Rights In Adobe Reader.
    Read the instructions that appear, and then click Save Now.
    But the 'Enable User Rights in Adobe Reader' option is greyed out and not clickable.  Is there a good solution for how to do this?  Am I doing something wrong?

    That would normally work, although the menu item is: Advanced > Extend Features in Adobe Reader
    Reasons it may not work include you have security applied or the document is marked as a PDF/A document and you're viewing it in PDF/A mode. What does it say for security when you select: File > Properties > Security

  • Allowing a user to select a Date

    what is the best option which can be used to allow a user to select date from the user interface on a JFrame? Is there any tool available which can be used directly for this? (eg. like we can use javascript component in web-pages).

    visit this one
    http://in.geocities.com/onlyjava2003/index.html

  • I want to download photos in a facebook group but don't want them copied, is there a way to do that?

    I would like to post photos into a facebook group that I'm in but I do not want them copied, is there a way to do that?

    Copy everything from your old computer, or your backup copy of your old computer, to the new one.

  • How do I prompt a user to enter numeric data while a vi is running?

    I am writing a Labview vi that to calibrate angle sensors. I need to prompt the user to enter numeric or string data for the low and high angle points so the vi can then calculate the span based on these values and the a/d output differences at these two points. I can't use preset points because the angle data is resolute to 0.1 degrees, and having the user raise or lower a boom to a predefined point is not within reasonable expectation. I would be much obliged for any help that is offered.

    Build a subVI that has two numeric controls for the user to input the data (name them something appropriate like "High Angle" and "Low Angle").
    Add and "Enter" button to the front panel.
    Set the subVI preferences to include Open Front Panel When Called and Close Afterwards if Originally Closed. these are in Windows Appearance, Customize.
    Put a delay (say 50 ms) and a while loop on the block diagram to wait until someone presses the button.
    Connect your front panel controls to outputs on the connector pane.
    This will pop up a dialog type of window when you need the user to input data. And make the dialog window disappear when done. You can also add valid data checking to the subVI and whatever else you need.
    Rob

  • Restricting User to Enter Only Date Value

    Dear Expertsl,
    Can we restrict users to insert only date value (in RRMMDD format ) in a column whose data type is number,
    Note that i cannot modify the column because there are already values entered in the column and cannot delete it.
    Regards

    Try to convert it to a date in the WHEN-VALIDATE-ITEM-trigger, if it works, its a date, like
    DECLARE
      dt DATE;
    BEGIN
      dt:=TO_DATE(:THEITEM, 'MMYYYY');
    EXCEPTION
      WHEN OTHERS THEN
        -- Show error message
        -- then raise error
        RAISE FORM_TRIGGER_FAILURE;
    END;

  • Wanted: Popup which allows the user to enter one string

    Hello,
    as the topic states, I am searching for a (modal) popup which lets the user enter one string in a text field and returns this string.
    I am currently using the function module 'POPUP_TO_GET_ONE_VALUE' for this purpose which works quite good - BUT it has one major drawback: the string that is returned is entirely in capital letters. This is not acceptable as I want to build a case-sensitive search based on the input...
    Any suggestions are greatly appreciated !
    Best regards,
    Patrick

    Anand,
    I'm just finished with your first reply - checked out 'POPUP_TO_SEARCH_VALUE' - and you already gave a second option - marvellous !
    Will try the other one out right now.
    You are right, the parameters that reference to the DDIC made me wonder and decide against this FM when I searched through all the available popups some time ago.
    To your first reply:
    the popup is quite good. It does indeed deliver a 'case preserved' string. What I don't like is the checkbox and the fact, that the confimation button is labeled 'search' rather than just the 'ICON_OK'. I should mention at this point that I reuse the popup in other scenarios where the string is not used for a search but to name certain objects. Again an all uppercase string (or all lowercase string as well) is unwanted.
    Now on to the second popup...
    Regards,
    Patrick

Maybe you are looking for