Form component does not give the ability to use formName.data

Hi there

I am running into a weird 'bug' where I have a form component (lets call it form) with lots of text or dropdown components. Each of these components are populated with data from a Query but the user is also able to alter these values.

I want to take the data from this form to post it with a different query but the issue is I'm not able to just choose form.data. I have done this on other places in the app but can't seem to find why it doesn't want to do it with this one.

Retool has been acting weird all day with proposed methods but even if I type it manually it returns nothing.

Is there somewhere I can look or someone who has had a similar issue?

Thanks!

@Allys1098
Are you on cloud? Also, where is it that you are trying to access the formData? Screenshots? Code?

To my knowledge I'm working on cloud yes!

Sorry for the lack of information:
I am trying to access this data inside a script using nothing more than return form.data. When I then try to run that, it doesn't return anything. The first screenshot is the script I am trying to run and the second screenshot is an empty version of the form I want to get the data from. Of course I have been trying to retrieve the data when the form is populated.


For more information here is also a screenshot if the form settings:

The name says container but I have just switched the container to a form to try and have an easier way of accessing the data.

Is there any more information you might need?

Are you running the JS on the same page as the form or is it in the Global section? Assuming you are building a multipage app...

Here is Global JS

Here is the same JS moved to page1:

After reloading the page (which I had done earlier as well) it works now.. :sweat:
The issue of things only working after reloading multiple times is getting to me :sweat_smile:

I was in the page code so it wasn't an issue of being a global defined script, even tho it's good to know that I can't access data there.

Thanks for your time!

1 Like

:stuck_out_tongue_winking_eye: YEP!

2 Likes