How can we reset the fields on CAF screen

How can we reset the fields on CAF screen

Hi,

Do you want to do this from the frontend or from the backing bean?

For both is rather easy, just retrieve the value of a certain field and set the value to “” or null.

Ex: javascript


var inputField = CAF.model('#{activePageBean.clientIds['inputField']}');
inputField.setValue("");

Hope it helps,
Vlad Turian