Form and Date Picker
In this session let's see how to create new records and use the date picker component
Creating a form
Steps:
Insert a new screen
Insert a form on Edit mode
Change columns property to 2
Change the background color to "#FCFCFC"
Unlock datacards 'Start date' and 'Due date'
Replace the datepicker objects with lowcodera datepicker
Change the Input format property to "DD/MMM/yyyy"
Rename the form name to "FormTasks"
DatePicker
InputFormat
"DD/MMM/yyyy"
DatePicker
X
30
DatePicker
Width
Parent.Width - 60
Form
BackgroundColor
"#FCFCFC"
Form
Columns
2
Form
Name
FormTasks
Create New Item
On Task Screen create a new button. On the property OnChange use the following formula:
NewForm(FormTasks);Navigate('New Task Screen', Fade)Create a button and rename the label to "Save". On the OnChange property paste the below formula:
SubmitForm(FormTasks)OnFailure:
Notify("Something went wrong" ,Error)OnSucess:
Back();Notify("Item saved", Information)Editing Items
Let's create a feature to edit items displayed in our gallery.
At OnSelect property of the gallery let's use the following formula:
Set(_Record, ThisItem);EditForm(FormTasks);Navigate('New Task Screen')In this snippet we are:
Setting a variable to store the record.
Setting the form mode to Edit
Navigating to the 'New Task Screen'

Deleting Items
To delete the selected item let's create a new button and change the label to "Delete"
Use the below code OnChange property
Remove(WorkProgressTracker, _Record); Back(); Notify("Item deleted", Information)Last updated