AutoComplete with form

UI Components for React
Post Reply
thomasoggier
Posts: 1
Joined: 14 Aug 2023, 11:40

14 Aug 2023, 12:43

Hi everyone,
I would like to use an autocomplete box with form, but I would like to print value different on the box than sent on form:
Person
- Name
- Forname
- ID

-> html will show concatenate name with forname when selected
-> form will get the user's id and not the "name-forname" field

Thanks in advance!

PeterShelton
Posts: 1
Joined: 31 Aug 2023, 07:22

31 Aug 2023, 07:24

Hy there i can see your post and i must say

HTML Structure:
Start by creating your HTML form and autocomplete input field.
html
Copy code
<form id="myForm">
<label for="person">Person:</label>
<input type="text" id="personInput" name="personInput">
<input type="hidden" id="personId" name="personId">
<button type="submit">Submit</button>
</form>Workforce Now ADP

Thanks and regards\
PeterShelton

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests