# How to combine data from two fields and use it in a button component?

**URL:** <https://community.glideapps.com/t/how-to-combine-data-from-two-fields-and-use-it-in-a-button-component/68032>\
**Category:** Ask for Help\
**Created:** [November 22, 2023, 12:18pm UTC](https://community.glideapps.com/t/how-to-combine-data-from-two-fields-and-use-it-in-a-button-component/68032 "2023-11-22T12:18:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hemanth\_Chandra](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hemanth_chandra/32/66798_2.png) [@Hemanth\_Chandra](https://community.glideapps.com/u/Hemanth_Chandra)\
**Post date:** [November 22, 2023, 12:18pm UTC](https://community.glideapps.com/t/how-to-combine-data-from-two-fields-and-use-it-in-a-button-component/68032/1 "2023-11-22T12:18:09Z")

</div>

There are two fields. User must enter data into two fields.

I want to get data from these two fields, create a unique link by using data from these fields and upon clicking Submit button, the user should be navigated to that URL.

Few options that I am looking at.

1. Create an action under the Button component. But, I am only able to refer only one field and not able to modify it.
2. Create a field but combining the text from 2 fields and use this new field as an action under the Button component. But, don’t see an option to concatenate two fields.

Any help would be appreciated.

I don’t want to save any data

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [November 22, 2023, 12:54pm UTC](https://community.glideapps.com/t/how-to-combine-data-from-two-fields-and-use-it-in-a-button-component/68032/2 "2023-11-22T12:54:26Z")

</div>

> [@Hemanth\_Chandra](#):
>
> Create a field but combining the text from 2 fields

You could do that with a Template Column

> **[Template Column](https://www.glideapps.com/docs/template-column)**
>
> Display dynamic text that can change with the values in other columns.

---

<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:** [November 23, 2023, 12:32am UTC](https://community.glideapps.com/t/how-to-combine-data-from-two-fields-and-use-it-in-a-button-component/68032/3 "2023-11-23T00:32:11Z")

</div>

> [@Hemanth\_Chandra](#):
>
> create a unique link

Is this an external link?

---

<div class="post-metadata">

**Author:** ![Hemanth\_Chandra](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hemanth_chandra/32/66798_2.png) [@Hemanth\_Chandra](https://community.glideapps.com/u/Hemanth_Chandra)\
**Post date:** [November 23, 2023, 8:43am UTC](https://community.glideapps.com/t/how-to-combine-data-from-two-fields-and-use-it-in-a-button-component/68032/4 "2023-11-23T08:43:37Z")

</div>

Yes

---

<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:** [November 23, 2023, 11:14pm UTC](https://community.glideapps.com/t/how-to-combine-data-from-two-fields-and-use-it-in-a-button-component/68032/5 "2023-11-23T23:14:51Z")

</div>

If they’re passed as params in the link, you can use a Construct URL column so that it formats itself.
