Help forum
- Component naming
nathandh
✅18 1 month ago
23 Nov 2024, 03:55
What toddle calls component “attributes ” , other typical web tech (like React generally or Webflow specifically ) calls “properties ” . When I see “attributes ” , I think data -attributes every time , which is not the same thing . Why the difference in naming convention ? - On Load API calls?
Fisher
4 1 month ago
22 Nov 2024, 23:57
I have a page , and On Load I want to set a bunch of things from an api call to variables . I do this several times to account for several different variables to set . My question is : Is this API call happening several times on load , one for each variable set ? If so , what is the better way to do this ? - List json key value pair
zefunha
19 1 month ago
22 Nov 2024, 21:42
Hi all , How do I list out the key value pair from a json object . At the moment am just listing the object only and not the key . Is there a way to list key in one div /list and the object in another - How can a page determine if it is running in the editor?
Patrick Mast
2 1 month ago
22 Nov 2024, 19:24
I have a workflow that triggers on “OnLoad . ” How can I prevent it from running while editing the page in the editor ? How can the page detect whether it ’s running in the editor or not ? - Duplicate Child Component From Parent
Matt
6 1 month ago
22 Nov 2024, 06:45
Hey guys , I 'm completely new to toddle and am trying to set up a 'habit tracking ' component that can create new child 'habit components ' when a user click the 'add habit button ' . I 've set up a click event on this button and believe i need to set up a repeat formula on the child component but can 't seem to get it working ! Any advice would be much appreciated . - Is there a way to programmatically get the window.location.href?
Tom Ireland
6 1 month ago
21 Nov 2024, 23:30
If I navigate to https://my.toddle.site/subscribers and I 'm not logged in , I get redirected to the login page to submit my email address and then verify my OTP (expected ) . I 'd like to be able to redirect the user back to /subscribers if login is successful . This would be the same for other pages a user might visit . Is it possible to grab the URL dynamically to set up a redirect and pass that along with the login flow ? My guess is query params in some way shape or form ? - TypeError in exported web component
mossi
4 1 month ago
21 Nov 2024, 18:01
I 'd appreciate any insights ; I made a simple component in toddle that has a few divs and a couple of APIs . I used the export snippet to embed the component in my website . My website is a CMS based site (Joomla ) with 3 themes /templates . The component works as expected only with of the themes and gives the following error when other themes are activated . Just to give more context , on the problematic themes , some elements still work and the issue is that only one of the divs in the component fails to render , and one of the apis fail to work . here is the error : TypeError : Cannot read properties of undefined (reading 'cleanup ' ) at createNode . t s : 2 9 6 :18 at Array .forEach ( <anonymous > ) at createNode . t s : 2 9 4 :43 at Ct .subscribe (signal . t s : 3 5 :5 ) at v (createNode . t s : 1 8 8 :18 ) at _ (createNode . t s : 3 4 0 :12 ) at createElement . t s : 1 9 1 :26 at Array .forEach ( <anonymous > ) at po (createElement . t s : 1 9 0 :19 ) at m (createNode . t s : 4 0 :11 ) - Does an empty string evaluate to true or false?
Sean
39 1 month ago
21 Nov 2024, 17:54
Why does an empty string here evaluate to true ? I assumed that this would be false but this evaluates to true . - Need help with styling tabs
Joel June
7 1 month ago
21 Nov 2024, 14:44
Hi guys ! I nam looking for some help surrounding Tabs . I am coming from Webflow where there are standard tabs components that you can style . I coudn 't find any tabs in the elements . For this reason I downloaded the shoelace components . I copied and pasted the tabs component on my project , but I can seem to put styles on some of the items . Can someone explain to me how I can edit the style ? - How to keep user's preferences
benjabievres
6 1 month ago
21 Nov 2024, 11:44
Hello ! I created a "checkbox " Input and a corresponding "showViewed " variable = > I will use the variable in a Filter to show only specific items . This part is fine , even if the formulas are a little more tricky since we have to use the "checked " attribute and not the value that is passed by the event . But , I would like to keep the user preferences so that it goes back next time the user opens the page . For this , I suppose that Local Storage is the way to go . I tried different things , but I can 't make it work properly (in 'preview ' mode ) . So , how can this be achieved ? (let 's call the Local Storage variable "showViewedLocal " . - The first time the user opens the web app in a browser , "showViewedLocal " doesn 't exist . - When should I load "showViewedLocal " ? on the onLoad event ? And shall I store this variable to "showViewed " - When should I store "showViewedLocal " ? on each "change " event of my checkbox ? If you know any tutorial I could use to learn , it would be great ! Thanks Benjamin - Itunes Tutorial API trouble
PinkSaltWhitePepper
12 1 month ago
21 Nov 2024, 01:31
I am having trouble getting the API to look or work right , and I am not able to get it like the tutorial . What am I doing wrong ? Thanks . - How do I create an array with specific data from an api request?
Lord Almighty
45 1 month ago
20 Nov 2024, 20:01
I 've been trying to figure out how to put data from an api request into an array . I cant figure it out . - Changing items in a list generated from an API call
benjabievres
6 1 month ago
20 Nov 2024, 09:49
Hello , I would need advices on how to proceed for the following , please : I generated a List from an API call . I would like to be able to switch a boolean or to change the value of a field of some items , and to click a Save button . But , since the list items are generated from an Array I got from an API call , how can I set the different new values ? To summarize : I want the list to be filled with data coming from the API call response array , I want to be able to change some values , and then to update data , calling another endpoint (I didn 't build the endpoint yet ) . How can this type of use -case can be achieved ? Thanks - Page visit behavior will be included in the request?
Rrrrnnyg
6 1 month ago
20 Nov 2024, 02:55
- Filtering Airtable API Call
Hausia
5 1 month ago
20 Nov 2024, 00:39
Any ideas why this filter isn 't working ?