# Setting Row/Cell Value Using Action Function

**URL:** <https://community.glideapps.com/t/setting-row-cell-value-using-action-function/77096>\
**Category:** Ask for Help\
**Created:** [October 15, 2024, 1:46am UTC](https://community.glideapps.com/t/setting-row-cell-value-using-action-function/77096 "2024-10-15T01:46:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kate\_Gooden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kate_gooden/32/80326_2.png) [@Kate\_Gooden](https://community.glideapps.com/u/Kate_Gooden)\
**Post date:** [October 15, 2024, 1:46am UTC](https://community.glideapps.com/t/setting-row-cell-value-using-action-function/77096/1 "2024-10-15T01:46:15Z")

</div>

Hi all,

I am a little stuck with how to use the action to set the row value of an item.  
For context on a page I have a form set up whereby I will am getting users to submit all their details → when they click submit it will write to a table and take them to a new page (all working well so far), this new page is where they can select how long they wish for their advert to shown for (1 month, 2 months, 3 months etc) → I set this up using an action, Action 1- direct them to a payment link using stripe (external). and Action 2 - set column values as ‘1 month or 2 months’ etc depending which they select (this is the bit where I become stuck)  
The payment link bit is working well however when the choose the listing duration it only writes to the first row in the table - meaning it doesn’t hold against the correct row.  
Just wondering if there is a way to have infomration from two different pages direct to the same table whilst also directing users to an exertnal link.  
For more info - page 1 is a normal form page with submit button, page 2 is a page that has 5 action rows on it - the action rows have an action set up behind that is the set values and link to payment.

Thank you!

---

<div class="post-metadata">

**Author:** ![Alpha\_University](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alpha_university/32/91520_2.png) [@Alpha\_University](https://community.glideapps.com/u/Alpha_University)\
**Post date:** [October 15, 2024, 5:14pm UTC](https://community.glideapps.com/t/setting-row-cell-value-using-action-function/77096/2 "2024-10-15T17:14:07Z")

</div>

Are you using a relation to that table? If so, is the box checked that allows multiple results to be returned from that relation?

---

<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:** [October 15, 2024, 11:41pm UTC](https://community.glideapps.com/t/setting-row-cell-value-using-action-function/77096/3 "2024-10-15T23:41:11Z")

</div>

Is there a reason you don’t combine them into just one step? I assume the first step writes a row to the adverts table, the second one is just an extension of that to choose how long it would be shown?
