Small puzzle for the best of us, I recently discovered Tally.so and I adapted it to my app (whose demo is here)
As a reminder it is a Inbox block which displays different contents. I added an iframe in an Airtable field, this iframe displays a Tally form. In softr studio, I added a richtext field that display the iframe, it works fine but I have a problem : I can’t pass the record ID of the user.
In fact I saw this topic from @artur, but it implies to declare the iframe after the DOM loaded while in my case the iframe is injected from Airtable. My formula in Airtable already pass the record ID of the displayed record, but of course it’s not in Airtable that I can add the user’s info.
If someone has an idea of how to manage this in Javascript I’m interested. The goal would be simply to inject &userRecordID= + window['logged_in_user']['airtable_record_id'] on an iframe already loaded by the DOM
Are you sure you need to do this on the JavaScript end? If this formula is in a field of thr airtable record whose id you need to add, you should be able to add it in the concatenate statement.
Buuuut, I can’t dynamically change window[‘logged_in_user’][‘airtable_record_id’] in my airtable formula, by definition all this happens in the softr webapp and in JavaScript ? I’m wrong ?
I looked at your link Matthieu, which is very interesting because it shows that it is possible to pass script in a rich text of record details, but I did some tests and it does not work in my case
The thing is, you need a recordID, which is inside Airtable.
The idea for you is to find a workaround (maybe changing a bit your page interface?) that would get rid of your need for javascript.
But I don’t know what is your process to arrive at this point.
And I’m not sure window[‘logged_in_user’] would work inside a formula field in Airtable… As it is not in the right window (your softr page).
But David may know better about it concerning adding javascript in Airtable fields.