cancel
Showing results for 
Search instead for 
Did you mean: 

How to get event when custom stencil value changed?

dharmraj
Confirmed Champ
Confirmed Champ

I am using stencil in form . So i created  UI to replace stencil in ADF Form.

FormService.formFieldValueChanged method caling when form input value changed .But Its not calling when custom Stencil value changed . How can i get event when  Value of custom Stencil changed  in ADF Form ?

3 REPLIES 3

dharmraj
Confirmed Champ
Confirmed Champ

hey Ciju Joseph‌, is there any workaround available?

I think what you are looking at is Field property of the custom stencil.This will give you all the attributes of a stencil.

alfresco-ng2-components/form-field.model.md at master · Alfresco/alfresco-ng2-components · GitHub 

If you are looking at the custom stencil events then it is just another componenet in angular 2, It has its own dom elements associated with it so you can call the events in the same way.

cjose
Elite Collaborator
Elite Collaborator

Assuming that your stencil is an extension of WidgetComponent & if you are updating the stencil's field value correctly it should trigger an event! If that is not happening, please raise a bug with the ADF team with a sample snippet to reproduce this issue!

Ciju