Passing Screen Values into a form

Hi, I am trying to pass a screen value into a form but I don’t seem to be able to do it.

Each organisation has a library which would ideally stay in one table. But the library is split into FF&E & Finishes and therefore I’ve created two pages with the relevent filters on it. When a user hits the add button on the FF&E page I would like it to automatically add FF&E to the type column in the database and the same for Finishes on the finishes page. I have tried putting a hidden text element onto the page in order to pick that value up as the form field but I can’t pick it up.

The only other option I can think of is using the url of the page and connect it to the type.

Any help would be much appreciated.

How are you setting up the form? Are you using Value components within the form?

This is how I have it set up

If you add this component, do you get what you want?

nothing unless I manually the type into the box. However, I’ve just realised that Types are linked to the categories which the user actively sets in the form so I should be able to pull it from that.

Will give that a try and let you know if it doesn’t work


Value from Screen components automatically pass values through a form without the user having to see it. It’s automatic without showing anything on the screen. Isn’t that what you want?

It is however, what happens if there is no data in a companies library yet, no values would be availble to pass. I guess i could set up an action when a user organisation is created that creates two hideen library items, one for FF&E and one for Finishes so the values will be there to pass. Will give it a try.

I might need more information to get a better understanding. Are you saying that the Type should automatically populate, but if the organization does not have a type, then you want to show an entry component so they can manually add a Type?

Sorry, just thing to wrap my head around your data structure and app flow.

Hi Jeff. Thanks for your help but I got it sorted :ok_hand:

I have another question though.

That form is linked to an action that triggers a number of searches and new row creation in other tables.

I am hoping to also create rows in that table using the API from an external source. Is it possible to trigger the action when a new record is created rather than from the form submit button?

At the moment there is no way to trigger actions externally. Actions can only be triggered by user interaction within the app. Glide is working on some backend automation, but I don’t know how long it will be before we see that.

1 Like

Ok great. Thanks so much

1 Like