SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Set a field mandatory with javascript on onChange event

Last post 09-29-2008, 9:52 AM by hemantctsrhtk. 1 replies.
Sort Posts: Previous Next
  •  08-28-2008, 3:50 PM 13322

    Set a field mandatory with javascript on onChange event

    Hi,

    I want to set a field mandatory if another field was selected through javascript.

    My scenario:
    I have a task list with a due date. I want to ensure that if that due date is filled by the user he must fill a justification text field.
    The due date is not mandatory so I can't set the field "Justification" to always mandatory.

    I'm already using a webpart with javascript code in it to hide some fields on EditForm.aspx page, I think I can use a similar approach.

    Any help available?

    Thanks in advance,
    Roger
  •  09-29-2008, 9:52 AM 14020 in reply to 13322

    Re: Set a field mandatory with javascript on onChange event

    use a list form web part on a new page  rather than using javascript on the editform.aspx itself
    Thanks & Regards
    Hemant Kumar
    hemantup@gmail.com
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems