How to get the value entered in textfield and textarea using scripting function
Time to start reading the manual ajay
You need to get a reference to the object and (in the case of the 2 you’re interested in) read their text property.
For help with scripting with components, look in the help file underScripting / Python / Python in Ignition / Working with Components
For help with the text field and text area controls, seeAppendix A. Components / Input
In the event handler (or script editor) you can click on the link icon to the right of the script to bring in any property value, ie text field’s text. That way you don’t have to type in the path manually.