How to make some field empty through Business Rule

Community Alums
Not applicable

Through business rule I want to make some fields empty, so how can we do this.
(i) Through action --section
(ii) Through the code--in Advance section

If through code--please help with the code.

Thanks in Advance
Utsav

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Hi,

You can do with the options you commented above. Please help confirm exact use case.

OlaN
Giga Sage
Giga Sage

Hi,

Just like Jaspal mentioned above, no code is needed.

Attaching image to show example.

 

clear-field-business-rule.png

 

But if you need to code for some reason, that will also be doable.

Example below.

(function executeRule(current, previous /*null when async*/) {

	current.setValue('some_field_name', '');

})(current, previous);

Community Alums
Not applicable

Thankyou @OlaN @Jaspal Singh 
It works!!