# Button relation

**URL:** <https://forum.adalo.com/t/button-relation/12189>\
**Category:** Get Help\
**Created:** [May 4, 2021, 1:32pm UTC](https://forum.adalo.com/t/button-relation/12189 "2021-05-04T13:32:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOSES](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@MOSES](https://forum.adalo.com/u/MOSES)\
**Post date:** [May 4, 2021, 1:32pm UTC](https://forum.adalo.com/t/button-relation/12189/1 "2021-05-04T13:32:01Z")

</div>

Hi,  
How to make all the lines appear (right screen on left screen) by pressing the edit button?  
ps: for an announcement modification only for the user and not for the public

 ![adalo test](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/8/8adde6ba5403143dde6b73527d34dbfc4f72ce51.jpeg)

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [May 4, 2021, 2:01pm UTC](https://forum.adalo.com/t/button-relation/12189/2 "2021-05-04T14:01:37Z")

</div>

Hi, trying to understand the requirement. You want the form to show the default values, based on what is already saved on the database?

---

<div class="post-metadata">

**Author:** ![MOSES](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@MOSES](https://forum.adalo.com/u/MOSES)\
**Post date:** [May 4, 2021, 2:27pm UTC](https://forum.adalo.com/t/button-relation/12189/3 "2021-05-04T14:27:53Z")

</div>

yes exactly, the fields are empty when I click on the edit button

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [May 4, 2021, 2:36pm UTC](https://forum.adalo.com/t/button-relation/12189/4 "2021-05-04T14:36:35Z")

</div>

If you use a form, rather than building the input fields separately, the defaults will be there.

However if you need to build your own input fields where you can put a default. You can see at the bottom the option for default. (this example is a dropdown)

 ![Screenshot 2021-05-04 at 21.33.18](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/d/ded56d69a37f81a5254571277b9fc4b25dfea81e.jpeg)

You can pick a default value from the available data on the screen, either ‘current’ data or ‘logged in user’. In the below screenshot we can choose logged in user \> store, because i have a relationship set up between ‘stores’ and 'users.

 ![Screenshot 2021-05-04 at 21.33.26](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9babe1ac4ee0d3ab30e7778e00b8460a659627ba.jpeg)

The below example shows a text field, and how to set a default.

 ![Screenshot 2021-05-04 at 21.35.24](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/0/0c5cbfb9122b3d54471445e9f6fd4e9334ee0b06.jpeg)

Overall the easiest option is just to use the Adalo built-in form component, then you don’t have to worry about these things.

---

<div class="post-metadata">

**Author:** ![MOSES](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@MOSES](https://forum.adalo.com/u/MOSES)\
**Post date:** [May 4, 2021, 3:22pm UTC](https://forum.adalo.com/t/button-relation/12189/5 "2021-05-04T15:22:06Z")

</div>

![adalo test2](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9d9f8c1578072a87e9bc7e1186640646ac57ce6a.png)

is there a parameter to be made on the edit button?

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [May 4, 2021, 3:33pm UTC](https://forum.adalo.com/t/button-relation/12189/6 "2021-05-04T15:33:41Z")

</div>

It needs to link to the other screen. And you need to check both screens have the current data you need available.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [May 14, 2021, 3:34pm UTC](https://forum.adalo.com/t/button-relation/12189/7 "2021-05-14T15:34:37Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
