# Autopopulate/Autofill field based on selected value on first field

**URL:** <https://forum.radsystems.io/t/autopopulate-autofill-field-based-on-selected-value-on-first-field/2181>\
**Category:** Uncategorized\
**Created:** [June 24, 2024, 4:37pm UTC](https://forum.radsystems.io/t/autopopulate-autofill-field-based-on-selected-value-on-first-field/2181 "2024-06-24T16:37:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pogzkie](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@pogzkie](https://forum.radsystems.io/u/pogzkie)\
**Post date:** [June 24, 2024, 4:37pm UTC](https://forum.radsystems.io/t/autopopulate-autofill-field-based-on-selected-value-on-first-field/2181/1 "2024-06-24T16:37:52Z")

</div>

Hello, I am trying to make another field automatically populated (without selecting on dropdown as the dynamic select lookup does) based on the selected field value on a first field.  
Example: I have Item\_tbl with fields item\_  
id, item\_sku and item\_name. order\_tbl with fields order\_itemid, order\_itemsku and order\_itemname.  
In order\_tbl, order\_itemsku is a lookup field from Item\_tbl.item\_sku. I am trying to utilize the Autofillinput to automatically populate the order\_itemname based on the user selected value on order\_itemsku but no luck. The goal is to automatically input the related field in the order\_itemname based on the user selected input in order\_item sku (without having to click on the dropdown on order\_itemname because it should be a text value and disabled so the user doesn’t need to worry about) and must update if the user change the value.

---

<div class="post-metadata">

**Author:** ![heripmck](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/h/53a042/32.png) [@heripmck](https://forum.radsystems.io/u/heripmck)\
**Post date:** [November 12, 2024, 5:07am UTC](https://forum.radsystems.io/t/autopopulate-autofill-field-based-on-selected-value-on-first-field/2181/2 "2024-11-12T05:07:17Z")

</div>

you may check this thread:

> [@Creating an autopopulate api in phprad classic 2.7.3++](https://forum.radsystems.io/t/creating-an-autopopulate-api-in-phprad-classic-2-7-3/841):
>
> hello there! this is a tutorial specifically for the older version of phprad which as of the making of this tutorial it at 2.7.3! currently available at [https://phprad.com](https://phprad.com) ! this example will work on all of its releases! what we will look at! -MAKING AUTOPOPULATE OF FIELDS BASED ON A SELECTED VALUE - USING FETCH -MAKING AND CALLING AN API IN PHPRAD 2.7.3 with that out of the way let get down to business i have two tables ! us and us2! i want to get data from the us table from…
