Method Community

 

DateTime Picker - Edit Activities page - "DueDateStart" backdating issue

Last post 05-09-2018 9:47 AM by Keke. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-09-2018 7:54 AM

    • Keke
    • Not Ranked
    • Joined on 03-16-2018
    • Posts 2

    DateTime Picker - Edit Activities page - "DueDateStart" backdating issue

    Hello,

    I would like to prevent call stuff to set past dates on Edit Activity page. Is it possible to cutsomize DateTime picker so past dates can't be selected?

    Thank you for your help.

  • 05-09-2018 8:58 AM In reply to

    Re: DateTime Picker - Edit Activities page - "DueDateStart" backdating issue

    Answer

    Hi there Keke,

    Thanks for posting!

    You aren't able to directly 'restrict' picking a date which is earlier than today, but you can certainly do some quick customization to acheive the same result!

    You would need to add actions to the OnChange event on the DatePicker object which would;

    • Check if the entered date is Less Than the Current Date using a Conditional Statement
    • Display a Message (Using Show Message Action) stating the Date is before todays date (optional)
    • Set the Date back to Todays Date / Time
    This will ensure that any time a user selects a date that is before today, it will instead revert to the current date. 



    Hope that helps! Thanks Keke.
    -Ben
    Ben Hargreaves
    Senior Support Specialist
    Method:CRM
    b.hargreaves@method.me
    Toll Free: 1.888.925.6238
    Local & Overseas: 416.847.0400
    Fax: 416.640.6027
  • 05-09-2018 9:47 AM In reply to

    • Keke
    • Not Ranked
    • Joined on 03-16-2018
    • Posts 2

    Re: DateTime Picker - Edit Activities page - "DueDateStart" backdating issue

    Thanks Ben, your instructions are very helpful. 

    I successfully customized "DueDateStart" 

    Regards,

    Keke

Page 1 of 1 (3 items)