The CreatorCon Call for Content is officially open! Get started here.

How to empty a 'Duration' field type on a form via Business rule?

Mayank Das
Tera Contributor

Requirement: To empty the Estimated Travel Duration (u_estimated_travel_duration) once a Business Rule is run. (screenshot below)

MayankDas_0-1694113210829.png

 

The field type is 'Duration'.

I have tried to update the field by using current.u_estimated_travel_duration = "" but that did not work.

Can someone please help me?

 

Thanks & Regards

Mayank Das

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

I have used this:

current.u_estimated_travel_duration.setValue(0);

View solution in original post

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

I have used this:

current.u_estimated_travel_duration.setValue(0);

Mayank Das
Tera Contributor

Thanks @Brad Bowman ! The solution that you provided worked.

I tried to use setValue('0') which did not work but I guess I know where I went wrong.

Thank you so much for your help... I appreciate it a lot!

You are welcome!