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 ?

Ex : Custom Stencil replace with input box  . When Input box value change that time i want to generate event  same like adf form input box value change  that time this event will call

FormService.formFieldValueChanged

export class TaskAddCommentComponent extends WidgetComponent {

}

export class TaskDetailComponent implements OnInit, OnDestroy, AfterViewInit {

this.formRenderingService.setComponentTypeResolver('muraai_comments', () => TaskAddCommentComponent, true);

 

IN this component  i want to get event when stencil input box value changed. Is It possible ?

}

1 ACCEPTED ANSWER

dvuika
Star Collaborator
Star Collaborator

Yes, that 'formFieldValueChanged' is raised on each field value change as the name of the event states.

You can listen to this event from any place. If you want to "emit" this event, you need to call "formFieldValueChanged.emit(...)". Please refer to documentation or source code.

View answer in original post

7 REPLIES 7