# Initialize form values depending on the Action

**URL:** <https://community.glideapps.com/t/initialize-form-values-depending-on-the-action/40736>\
**Category:** Ask for Help\
**Created:** [April 15, 2022, 12:04am UTC](https://community.glideapps.com/t/initialize-form-values-depending-on-the-action/40736 "2022-04-15T00:04:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_DfG](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/luis_dfg/32/16485_2.png) [@Luis\_DfG](https://community.glideapps.com/u/Luis_DfG)\
**Post date:** [April 15, 2022, 12:04am UTC](https://community.glideapps.com/t/initialize-form-values-depending-on-the-action/40736/1 "2022-04-15T00:04:00Z")

</div>

Hello!

I was wondering if it was possible to initialize the values of a form depending on the action that opened that form.

For example, I have this Button Bar  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/6/266d093f4e5e6ef1e120c15f81768bc36db2c8a5.png)

Each one with the action to open a Form for another table  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/a/6ab11cba93218a0903b860db2210c4fe0b15ecb8.png)

**Attempt 1**  
However it seems that I won’t be able to initialize values from this screen

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/0/d0dc373f1802ab681f6301854768945cdb7c33a0.png)

**Attempt 2**  
My next atemp was to create a custom action but I wouldn’t know how to navigate to the row I just added

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/0/206d83a79c9a693e9e9e9f868952ecf79f8004e0.png)

Any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 15, 2022, 12:27am UTC](https://community.glideapps.com/t/initialize-form-values-depending-on-the-action/40736/2 "2022-04-15T00:27:10Z")

</div>

> [@Luis\_DfG](#):
>
> However it seems that I won’t be able to initialize values from this screen

I’m not sure what you mean by “initialize” here? Do you mean setting a default value? If so, you can enter it just under the “column” row in your screenshot, or point it to a column of your choice.

> [@Luis\_DfG](#):
>
> My next atemp was to create a custom action but I wouldn’t know how to navigate to the row I just added

Seems like you’re using an add row action after the form is submitted. This will cause a duplicate since the form already adds a row for you.

So what is your use case for navigating to the row you just added, related to what you’re trying to do here?

---

<div class="post-metadata">

**Author:** ![Luis\_DfG](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/luis_dfg/32/16485_2.png) [@Luis\_DfG](https://community.glideapps.com/u/Luis_DfG)\
**Post date:** [April 15, 2022, 12:33am UTC](https://community.glideapps.com/t/initialize-form-values-depending-on-the-action/40736/3 "2022-04-15T00:33:01Z")

</div>

> [@Luis\_DfG](#):
>
> However it seems that I won’t be able to initialize values from this screen

@ThinhDinh thanks for the reply!

I was under the impression that if I initialize the value in that view, that initialized value was going to be consistant/the same through all my other actions that led to that form. However now I see that the initial value can be different in each action!

My second attempt was a workaround I was testing, but now I can discard it!

Thanks!
