Reset value in datetimefield

Is there any way to reset the value to null when only the date or time is entered in a datetimefield?

 

Screenshots attached

 

1. Enter only the date in 'Fecha entrega en mano'

 

2. Click on CANCELAR and confirm

 

3. Click on EDITAR again

4. As can be seen in the screenshot, the previously entered value is displayed by default. Appian does not reset the value to null for datetimefields. However, for fields other than datetimefields, it does reset them and previously entered values do not appear.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    datetime field stores the data entered in one of the fields internally, which we cannot reset. To clear it properly configure a!save(local!dateTimeValue,null) in the button that submits the form.

    Additionally if cancel/submit button have any process flow that writes the data into record/data store entity, you can add and set datetime field value to null before that node as well so that if value is not proper it doesnt get saved. 

Reply
  • 0
    Certified Lead Developer

    datetime field stores the data entered in one of the fields internally, which we cannot reset. To clear it properly configure a!save(local!dateTimeValue,null) in the button that submits the form.

    Additionally if cancel/submit button have any process flow that writes the data into record/data store entity, you can add and set datetime field value to null before that node as well so that if value is not proper it doesnt get saved. 

Children
No Data