WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

Foreign key column required but default to null value?

Last post 08-11-2008, 18:18 by admin. 1 replies.
Sort Posts: Previous Next
  •  08-07-2008, 22:22 720

    Foreign key column required but default to null value?

    Is it possible to have a required field but have a null value initially selected when creating new records.  I want to avoid the lazy user syndrome where by a user will not change the value and instead just use the first item in the list.

    Basically I want to add a null value to the column but still have all the required validation etc... fire.

    Any assistance would be appreciated as this is an excellent product and I only want to use it more.

    Matthew

  •  08-11-2008, 18:18 727 in reply to 720

    Re: Foreign key column required but default to null value?

    Set "Required=true" for the field you want to be required. (This will override any default data source settings)

    Olav Botterli, WebGrid Founding Developer
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems