Date Field
Last Post 03-30-2011 08:49 AM by Ryan Bakerink. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
David AmmUser is Offline
river guide
river guide
Posts:156
Avatar

--
03-27-2011 11:32 PM
    Hi

    Is the a way that i can make a date field not to be editable by the user, i want them to only select the date from the calender next to the field.
    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    03-28-2011 08:35 AM
    Hi David,
    To achieve this you will have to provide javascript to make the change to this field.  Currently this field does not have this feature.

    Thanks
    Don
    David AmmUser is Offline
    river guide
    river guide
    Posts:156
    Avatar

    --
    03-30-2011 05:44 AM
    Hi Don

    thanks for your reply do you maybe have the script for me that i can use?

    David
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    03-30-2011 07:34 AM
    Hello David,

    You will need to provide the JavaScript under Module Configuration -> Custom JavaScript File -> Initial JavaScript.

    So one of many ways to do this via JavaScript is to go into the source of the page and find the name of this date field.

    Then you can use similar JavaScript to this:

    document.Form.NameofDateField.disabled="true";

    Please let me know if this helps you. Technically this should make your textbox a read only field.

    If you have any questions please let us know.

    Thanks,

    Ryan
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    03-30-2011 08:49 AM
    Please see this demonstration I created for you:

    http://www.betasprings.com/Dynamic-...fault.aspx

    Login:

    host / dnnhost


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi