# Default fields from customer account role into new record on form

**URL:** <https://forums.knack.com/t/default-fields-from-customer-account-role-into-new-record-on-form/10071>\
**Category:** Get Answers\
**Created:** [March 27, 2017, 5:29pm UTC](https://forums.knack.com/t/default-fields-from-customer-account-role-into-new-record-on-form/10071 "2017-03-27T17:29:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TroyJohnso45342](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@TroyJohnso45342](https://forums.knack.com/u/TroyJohnso45342)\
**Post date:** [March 27, 2017, 5:29pm UTC](https://forums.knack.com/t/default-fields-from-customer-account-role-into-new-record-on-form/10071/1 "2017-03-27T17:29:30Z")

</div>

I have an application which only shows information belonging to the logged on user. The logged in user role (Customer) is connected to an object "Company". an object "orders" is connected to the company oject and the customer role. Each customer account has a company associated it it. This allows any logged in user from "company a" to view all the records of "company a" All the records on stored in one object "orders" The page views show records connected to the company of the logged in user. On a new record form, I would like the address to auto populate based on an address field on the customer. I cannot get this to work. I can auto fill based on an address field on the company, but not the customer. Any suggestion would be greatly appreciated.&nbsp;

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [April 1, 2017, 6:16pm UTC](https://forums.knack.com/t/default-fields-from-customer-account-role-into-new-record-on-form/10071/2 "2017-04-01T18:16:05Z")

</div>

Hi Troy,

&nbsp;

you can achieve this by java-script functionality.

&nbsp;

Thanks&nbsp;
