Form default values

Hi
I am creating a new Add form. I want to add default values to some of the fields so they display when the Add dialog loads.

I set the values in the Page events (right after the new object is created I set some of the members to the values I want). If I debug them I can see them.

Howver when the page loads the razor does not seem to pick them up and show them on the form, ir they are blank.

Whats the best way of setting default values for form fields?

I see a post Default values in forms templates are not sent to the server that shows a default value field, is that Angular only?

Thanks
Tim

You just need to set the property which you want a default value for. Here is an example:

Basically add an Execute C# statement after initialising the empty model.

1 Like