# How to effectively input the form and validate the output?

**URL:** <https://forums.eggplantsoftware.com/t/how-to-effectively-input-the-form-and-validate-the-output/8691>\
**Category:** Uncategorized\
**Created:** [January 8, 2024, 6:34am UTC](https://forums.eggplantsoftware.com/t/how-to-effectively-input-the-form-and-validate-the-output/8691 "2024-01-08T06:34:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thanagaraj](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/t/e495f1/32.png) [@Thanagaraj](https://forums.eggplantsoftware.com/u/Thanagaraj)\
**Post date:** [January 8, 2024, 6:34am UTC](https://forums.eggplantsoftware.com/t/how-to-effectively-input-the-form-and-validate-the-output/8691/1 "2024-01-08T06:34:42Z")

</div>

Hello Team,

I have the input form which contains around 20 fields with mixed of text field, editable fields and drop downs.  
Now I need to enter /select the values of these fields and submit the report.

Example my input form as below:

ID - Edit fields - means - Click the icon - will open pop-up - Enter the ID in text field & reason in text field - Press save button  
Name\_1 - Enter the name will search from LDAP and select from matching name  
Name\_2 - Search and select  
Name\_3 - Search and select  
Sur\_Name\_1 - text field - user enter the name  
Prefix - Select from drop down {e.g MR,MRs, }  
pincode - text fileld allowed only six digit

my idea is pass this input as property list and take relevant item from index & fill. Is it correct way or any other better alternative solution.

after submit button I need to verify the report section have the entered value ?

Example form:

> **[Employee Registration Form Template | Jotform](https://www.jotform.com/form-templates/employee-registration-form)**
>
> An employee registration form is used by companies to recruit new employees. Inspire the next generation of talent with your company by recruiting with a free Employee Registration Form.

---

<div class="post-metadata">

**Author:** ![DaveHester](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/davehester/32/104_2.png) [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Post date:** [January 8, 2024, 4:23pm UTC](https://forums.eggplantsoftware.com/t/how-to-effectively-input-the-form-and-validate-the-output/8691/2 "2024-01-08T16:23:27Z")

</div>

When I have completed items like this in the past, I have started with my data in Excel and have used that data as a datasheet. Additionally, I would recommend tabbing from one field to another. You may find that this form can be completed manually without using any dropdown clicks. If that is the case, I would emulate that within SenseTalk.

Hope this helps,  
Dave

---

<div class="post-metadata">

**Author:** ![Thanagaraj](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/t/e495f1/32.png) [@Thanagaraj](https://forums.eggplantsoftware.com/u/Thanagaraj)\
**Post date:** [January 9, 2024, 6:24am UTC](https://forums.eggplantsoftware.com/t/how-to-effectively-input-the-form-and-validate-the-output/8691/3 "2024-01-09T06:24:29Z")

</div>

Thanks DaveHester for you suggestion. Could you pls share the sample code for at least two text field input and submitted report output validation using excel data?

---

<div class="post-metadata">

**Author:** ![DaveHester](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/davehester/32/104_2.png) [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Post date:** [January 29, 2024, 6:50pm UTC](https://forums.eggplantsoftware.com/t/how-to-effectively-input-the-form-and-validate-the-output/8691/4 "2024-01-29T18:50:07Z")

</div>

Given the form that you showed and an Excel that looks like this

 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/e3fd701caed1290f952b36897b1386d096e4e022.png)  
Your code would look like this:

```auto
set myConnectionString to (type:"excel", file:ResourcePath("REG-1.xlsx"), writeable:yes)
put the number of records of myConnectionString into myRecordCount

Repeat myRecordCount times
	set myCurrentEmployee to the record of myConnectionString where "RecNumber" = repeatindex()
	Click (text:"First Name", waitFor:12, hotspot:(0,-15))
	TypeText myCurrentEmployee.FirstName,Tab
	TypeText myCurrentEmployee.LastName,Tab
	TypeText the first 2 characters of myCurrentEmployee.DOB&dash&characters 3..4 of myCurrentEmployee.DOB&dash&the last 4 characters of myCurrentEmployee.DOB,Tab
	TypeText myCurrentEmployee.Email,Tab
	TypeText myCurrentEmployee.Address,Tab,Tab
	TypeText myCurrentEmployee.City,Tab
	TypeText myCurrentEmployee.State,Tab
	TypeText myCurrentEmployee.ZipCode,Tab
End Repeat

```

Hope this helps,  
Dave
