How can i take the value from the form and input fields

i have created a form and inserted input nodes in it. how can i take the value which is entered by the user in the input box ??

Hi @Aswin,

The is two ways you can create a template form or a reactive form.

Templates form below:

  1. Create template variable for your form that contains your inputs by doing adding #form as a key and ngModel as value to your form under Add a new property.
  2. Then do a two-way binding to your inputs by adding a variable where you want to bind. The is [(ngModel)] property to your inputs values that’s where you need to add your variable and remember it needs to be inside a page object.

Please see the images below for better reference.


how we can access the entered value in the service flow ?? using this page.itemsForm.title??

is this correct ??

im not able to access the value , could you please share me that how can i access the value ?? @Simphiwe

On your click event or ngSubmit you can pick a flow that accepts your form as an argument. Inside form.value you will see your values there. Please see the image below.