How can I remove dropdown calendar menu from date/time field.

I set up a javascript calculation based on the input of a date field. As long as the user enters the date manually the script works fine. If user attempts to select date by drop down menu then script will not work. How can I remove the calendar feature from the Date field?

You may have to wire custom script to get you what you need. That would probably work on 'exit' event.
Just you give you better Idea here is some thing I have on a date field. If user types his own date instead of picking from calendar this code checks whether it is valid date or not and returns to the same field either they enter valid date or clear the field.
This is FormCalc script. You may get the idea how this works and make it work for you using the same logic either in FormCalc or JavaScript.
----- form1.SOF.Head.Table1.Row1.ReqDate.Date_ReqDate::exit: - (FormCalc, client) ------------------
if (HasValue($)) then
if (Len($.rawValue) == 10) then
var S1
var MM
var DD
var YYYY
var Derror
var D1
var D2
var S2
Derror = 0
D1 = 0
D2 = 0
S1 = $.rawValue
D1 = At(S1, "-")
S2 = Right(S1, 5)
D2 = At(S2, "-")
if (D1 > 0 and D2 > 0) then
if (D1 == 3 and D2 == 1) then
MM = Substr(S1, 1, 2)
DD = Substr(S1, 4, 2)
YYYY = Substr(S1, 7, 4)
elseif (D1 == 5 and D2 == 3) then
MM = Substr(S1, 6, 2)
DD = Substr(S1, 9, 2)
YYYY = Substr(S1, 1, 4)
else
Derror = Derror + 1
endif
else
Derror = Derror + 1
endif
if (Oneof(MM, "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12")) then
Derror = Derror
else
Derror = Derror +1
endif
//xfa.host.messageBox("MM"+ Derror, "Incorrect Date", 1, 0)
if ((Oneof(DD, "01", "02", "03", "04", "05", "06", "07", "08", "09")) or ((DD >=10) and (DD <= 31))) then
Derror = Derror
else
Derror = Derror + 1
endif
//xfa.host.messageBox("DD"+ Derror, "Incorrect Date", 1, 0)
if ((YYYY >= 1975) and (YYYY <= 2050)) then
Derror = Derror
else
Derror = Derror + 1
endif
//xfa.host.messageBox("YYYY"+ Derror, "Incorrect Date", 1, 0)
if (Derror > 0) then
xfa.host.messageBox("Preferred valied date between Jan 01, 1975 and Dec 31, 2050. ", "Incorrect Date", 1, 0)
xfa.host.setFocus($.somExpression)
else
//good
$.formattedValue = Format("MMM DD, YYYY", Concat(YYYY, MM, DD))
if ($event.shift) then
//xfa.host.messageBox("Shift")
var sh
sh = 1
//xfa.host.setFocus("xfa.form.form1.SOF.Head.RadioAttachTo.RadioAttachTo3")
else
if (xfa.event.commitKey == 1) then
var A
A = 1
else
xfa.host.setFocus("xfa.form.form1.SOF.Head.Table1.Row2.CustName")
endif
endif
endif
else
xfa.host.messageBox("Preferred valied date in format MMM DD, YYYY.", "Incorrect Format", 1, 0)
xfa.host.setFocus($.somExpression)
endif
endif
Good luck,
SekharN

Similar Messages

  • How can I remove old calendar names from the iTunes sync list?

    I gave my calendars new names as part of reducing the total number of calendars in my iCal, and now iTunes still lists the old calendar names as well as the new ones in its "selected calendars" list, even though these names are no longer present in my iCal nor on my iPod Touch. How can I remove the old calendar names?

    The "genius" folks at the Apple Store lived up to their names. The key was to reset the iSync history in the iSync Preferences.

  • How can I remove the "Notifications" icon from the Menu Bar in OS 10.9?

    How can I remove the "Notifications" icon from the Menu Bar in OS 10.9?

    As far as I can tell, this is your best option: http://reviews.cnet.com/8301-13727_7-57608829-263/how-to-turn-off-notification-c enter-in-os-x-mavericks/

  • How-can-i-remove-my-skype-name-from-the-sign-in-sc...

    Guys this is absolute rubbish feature of the login application where people's login names get recorded in the dropdown menu. Is there any more permanent way of getting rid of this annoying privacy intrusive "feature"? I would like to have a profile with a username that is not going to appear at airports and my grandma's laptop after I log out of skype and no I do not want to go digging for app files to remove my entire history on each and every machine I use as suggested by your help files. Could you please advise if I'm missing something here?
    https://support.skype.com/en-gb/faq/FA11070/how-can-i-remove-my-skype-name-from-the-sign-in-screen-i...

    Unfortunately, the option to remove that feature is not available.  
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • How can i import my calendar events from google calendar to ical?

    how can i import my calendar events from google calendar to ical?

    To set up CalDAV support for Google Calendar in Apple's iCal, follow these steps:
    Open Apple iCal, go to Preferences and then the Accounts tab.
    Click on the + button to add an account.
    In the box that pops up, enter a description for the account and your Google Account username and password.
    Under Server Options, add the following URL:
    https://www.google.com/calendar/dav/[email protected]/user//www.google.com/calendar/dav/[email protected]/user
    Replace '[email protected]' with the email address that you use to log in to Calendar. Make sure to include the '@domain.com' portion (which is @gmail.com for Gmail users) in this section.
    DO NOT substitute your username for 'user' at the end of the URL.
    Leave the Use Kerberos v5 for authentication option unchecked.
    Click Add.
    Under the Delegation tab, select the calendars you'd like to add to iCal by checking the boxes next to them. You may need to hit refresh to get the latest list of calendars.
    Add your email address to your Address Book card by selecting Add Email. You'll be prompted to add your email address only if your address is not already in your Address Book.
    You won't be able to invite or email guests to Google Calendar events within iCal if your address is not in your Address Book.
    Your Google Calendar will now appear in iCal's list of calendars, and changes you make to your Google Calendar in iCal will be reflected when you sign in to Google Calendar.
    Event information will automatically refresh every five minutes. You can change this interval by opening the iCal > Preferences > Accounts menu and selecting a new refresh interval under the 'Refresh calendars' drop-down. Keep in mind you can also force a refresh by selecting a calendar and pressing the Apple and R keys at the same time.
    Calendars that are checked but disabled have already been added to iCal - you can remove them from within iCal.

  • How can I remove my credit card from my account?

    How can I remove my credit card from my account?

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on an iOS device (iPad, iPhone or iPod Touch) then tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account  - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918

  • How can I remove the " Source.vi" from long Express VI Names?

    I am in the Moment working on the Development of an Express VI
    library for test purposes.
    How can I remove the " Source.vi" from long Express VI Names?
    This happens when the Express VI is inserted in the blockdiagram
    and listed in LabVIEW and TestStand Palettes.
    By short names like "DAQ-Assistent" or "EasyCalc" the string " Source.vi"
    is not shown at the end of the Express VI names.
    I used The Express VI Dev Toolkit 1.0 to create the Express VIs.
    Labview Version: 7.1 Base
    TestStand: 3.1
    It would be great to get the expert advice from the Forum for this issue!
    Thanks a lot.
    Andre

    I think I understand what you are asking for. If I am wrong, please try to explain it a bit more.
    The name shown may be different than the name of the vi file. To do this, your source VI and popup on its icon. From the short menu that comes up, select VI properties. In the top ring, select Window Appearance. The page that comes up lets you set various things that can affect the appearance of the VI. What you want to change is the window title. Uncheck the Same as VI name checkbox and change the string to whatever you want it to be.
    I hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How can i remove the spell check from my iMac, i tried system pref but it still autocorrects

    how can i remove the spell check from my iMac, i tried system pref but it still autocorrects

    Look at the Spelling settings in the Edit menu of the app that is doing the correcting.

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • How can i remove credit card info from apple id?

    How can i remove credit crad info from my apple id?

    I tried to enter it as "none" but it didnt work. It keeps saying i need a card number and all that. But then, i clicked "same as shipping information" and just entered my name and all the adress stuff, put my credit card number as 0 and my security code as 0, put in a random date and clicked save.
    -Just a tip for anyone else who couldnt figure it out like me

  • How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    Hello,
    Try Mail>Preferences>Accounts icon>Account Information tab>Click on the Outgoing SMTP server drop down, choose edit Server list, highlight the old one & click Remove.
    (Such convolution is worthy of Windows® in my estimation)

  • How can i remove an associated device from my iTunes account?

    how can i remove an associated device from my iTunes account?

    Hi..
    See, "Removing an associated device or computer from an Apple ID"  here >  iTunes Store: Associating a device or computer to your Apple ID
    Your iTunes account is the same as your Apple ID.

  • How can I remove me credit card from my  account I already tried from iTunes but it won't give the option 2 remove it!

    How can I remove me credit card from my  account I already tried from iTunes but it won't give the option 2 remove it!

    Go to Store > View My Account > Edit Purchase Info. Then just click "No credit card" and hit Okay, and it will remove all of the info. Good luck.

  • HT3702 how can i remove the authorization hold from my card...

    how can i remove the authorization hold from my card

    You can try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store
    How much was the amount ? A 'normal' holding charge is a small amount (e.g. equivalent to about $1), and usually happens after you add or change credit card details on your account. Here in the UK it can take a few working days for it to disappear (so a weekend can extend the elapsed time).
    Edit : I don't know what a non-liability certificate is and/or whether Apple can do one.

  • HT201303 How can i remove my credit card from my apple id

    How can i remove my credit card from my apple id

    Here's some more detail:
    You have to do this from ITunes on your computer.  You can't do it from itunes.com.
    First start ITunes.  On the left side of the screen, go to Store and then ITunes Store.  From the Quicklinks on the right side of the screen, go to Account.  After you sign in, you will see your account and payment information.  Click on Edit next to Payment Type.  Click None, next to Visa MasterCard Amex Discover.  It will then remove your credit card from your ITunes Account.

Maybe you are looking for