Help forum

  • nathandh

    1
    8

    1 month ago

    Component naming
    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?
  • Fisher

    4

    1 month ago

    On Load API calls?
    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?
  • zefunha

    19

    1 month ago

    List json key value pair
    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
  • Patrick Mast

    2

    1 month ago

    How can a page determine if it is running in the editor?
    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?
  • Matt

    6

    1 month ago

    Duplicate Child Component From Parent
    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.
  • Tom Ireland

    6

    1 month ago

    Is there a way to programmatically get the window.location.href?
    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?
  • mossi

    4

    1 month ago

    TypeError in exported web component
    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.ts:296:18
    at Array.forEach (<anonymous>)
    at createNode.ts:294:43
    at Ct.subscribe (signal.ts:35:5)
    at v (createNode.ts:188:18)
    at _ (createNode.ts:340:12)
    at createElement.ts:191:26
    at Array.forEach (<anonymous>)
    at po (createElement.ts:190:19)
    at m (createNode.ts:40:11)
  • Sean

    39

    1 month ago

    Does an empty string evaluate to true or false?
    Why does an empty string here evaluate to true? I assumed that this would be false but this evaluates to true.
  • Joel June

    7

    1 month ago

    Need help with styling tabs
    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?
  • benjabievres

    6

    1 month ago

    How to keep user's preferences
    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
  • PinkSaltWhitePepper

    12

    1 month ago

    Itunes Tutorial API trouble
    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.
  • Lord Almighty

    45

    1 month ago

    How do I create an array with specific data from an api request?
    I've been trying to figure out how to put data from an api request into an array. I cant figure it out.
  • benjabievres

    6

    1 month ago

    Changing items in a list generated from an API call
    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
  • Rrrrnnyg

    6

    1 month ago

    Page visit behavior will be included in the request?
  • Hausia

    5

    1 month ago

    Filtering Airtable API Call
    Any ideas why this filter isn't working?

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.