• Resolved byronyasgur

    (@byronyasgur)


    Is there any way to get the date into the format dd/mm/yyyy which salesforce requires ( in my installation of salesforce at any rate ) … if I manually type in 01/03/2017 for instance that works but if I set the field as a date field and use the picker it outputs 01-03-2017 which salesforce ignores

    something similar with numeric fields if the user types in eleven rather than 11 it gets ignored by saleforce. Is there any way to force numeric input

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    I assume you haven’t read the FAQ?

    How do I use the Date field?

    Choose it from the dropdown, that’s all you have to do.
    If you want to customize the date format or display/functionality of the datepicker UI, you can set the options by entering a list of options in the Options box of the field editor, one per line. Note that you must end each option with a comma, or you’ll end up with a javascript error instead of a datepicker.

    e.g.
    Default date format – Year, Month, Day

    
    dateFormat : 'yy-mm-dd',
    

    Month, Day, Year

    
    dateFormat : 'mm-dd-yy',
    

    Day, Month, Year

    
    dateFormat : ‘'dd-mm-yy',
    

    Day, Month, Year + Show the button panel

    
    dateFormat : 'dd-mm-yy',
    showButtonPanel: true,
    

    More information about the datepicker options can be found here:
    Examples: https://jqueryui.com/datepicker/
    API Reference: https://api.jqueryui.com/datepicker/

    • This reply was modified 7 years, 11 months ago by Nick Ciske.
    Plugin Author Nick Ciske

    (@nickciske)

    In your case it seems like this is what you’d need to put in the options area for that field:

    
    dateFormat : 'dd/mm/yy',
    
    Thread Starter byronyasgur

    (@byronyasgur)

    nice faq – yes I missed it – apologies – I’d never have really thought of looking there tbh even though I often do check the faq I just didn’t this time, sorry

    What about the numeric field – I checked the FAQ and didn’t see anything in there about that – and apologies in advance if I missed that

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Capturing Date and Numbers’ is closed to new replies.