How to make date time picker in workflow forms default to blank, so that setting a date is optional
I am having problems setting the date picker in forms. the date picker defaults to the current date, but what if the user does not wish to reset the date (in a form with many other entries), and to leave the existing date value as is. if you leave the form picker to set the date to the default, it will update the value in the fields. I would like to have the date set to null, as the default, so you could have an if statement that set the date only if the date was not null.
Jeff
-
I don't think you can achieve what you want to do at this moment since the Product code does not allow to do it.
On the RuntimeModification, you can set the InitialDate as Nullable Date like "form.Find(Of DatePickerFormItem)("DatePicker1").InitialDate = CType(Nothing, DateTime?)",
However the TextBox shows the DefaultDate which set as Date.Now (CurrentDate) when InitialDate is not set.
0 -
Hi,
I also have this problem. Is it resolved? Is it possible to have blank date field in workflow form ? ( Make date field optional ) Thanks.
Regards
0 -
You could add a radio button to your form that says something like "omit date" and then split your workflow based on whether or not the users selects it. Or you could do it the other way around and use a radio button that says "specify date".
0 -
Or a CheckBox. With a RadioButton a second option is required for it to switch between.
Regards
Ralph
0 -
Thanks Guys,
I will use this way, it should be the only way we have.
Regards
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer