Help forum

  • feraask-1333946869843492959

    KillerK009

    6

    2 months ago

    Discrepancy Between Variable Value Logged to Console and Current Value in Toddle
    I have a program variable which has a days element which is an array of values that I display using a Spark Drag and Drop list UI element. I want to allow dragging elements to reorder the underlying array.

    Using the On end event provided by the Spark list I set my variable value by moving the dragged element in the days array based on the oldIndex and newIndex values provided by the event data.

    I implemented the move function in a pretty simple custom code formula which seems to be outputting the correct new array when I log to console.

    But even though I'm seeing the correct program value output in the console during the On end event handler, when I look at the current program value in Toddle it's not correct and not matching what is output to console.

    Am I doing something wrong here?

    I've created a very simple test app to demonstrate my issue:
    https://toddle.dev/projects/drag_n_drop_test/branches/start/components/HomePage

    Just try dragging the first day Push to the end of the list. The program should then have days in order: [Pull, Legs, Push] which is what I see in the console, but the current value in Toddle has the original order of [Push, Pull, Legs] still.

    Also, it seems like my event handler steps are not running in order since I have it set to log to console before and after setting the program to compare but they both seem to be outputting the same value with the array already rearranged... πŸ˜•.

    Do event handlers not run sequentially?
  • achivas-1333870207294373958

    A-Chivas

    55

    2 months ago

    Auth token on toddle editor
    do we have a problem with auth token on the toddle editor, cant login and save token there, it keeps me signed out
  • jehex-1333760909088260177

    Jehex

    4

    2 months ago

    Defaut class color outline active in another class
    Hi there, quick question : how remove a style attribute from the defaut class in another class, for example I want delete the black outline from my defaut class who still showing in my DarkTheme Class ( where the outline must be white )

    Thanks you
  • raphaelwalters-1333145134904381490

    Raphael Walters

    3

    2 months ago

    Grid Template Area
    I am trying to set up grid-template-areas. I have input this is the parent div:

    grid-template-areas: h h h h h h h h h h h h, m c c c c c c c c c c c, f f f f f f f f f f f f

    I have input this in the child div:

    header div = grid-area: h
    menu div = grid-area: m
    content div = grid-area: c
    footer div = grid-area: f

    But I haven't managed to get it to work. I have also tried enclosed the child divs in double-quotations, single-quotations, etc.

    Is it possible to achieve this using the CSS editor?
  • kawwl-1333079205151244338

    Kawwl

    2

    2 months ago

    Replace All, Loop?
    Hi,

    I'm playing with OpenAI Assistants API.
    I have read we are not doing loops in Toddle, but I can't get the logic of how to solve this case.

    What I don't understand
    I need to iterate over, or "know" how to replace all instances in a string, with new data, based on another array.

    I have a string:
    Hello [text_1] this is a string. [text_2]

    I have an array (simplified example):
    [
    {
    "text": "[text_1]"
    },
    {
    "text": "[text_2]"
    }

    I want to replace [text_1] with "[0]" and [text_2] with "[1]". (Use index for now, maybe something else later)

    Desired result:
    Hello [0] this is a string. [1]

    Any ideas?
  • z_xv2-1332898376479674398

    .

    6

    2 months ago

    Accidentally deleted all changes
    Hello,

    I’ve been working on some changes in a branch that’s probably bigger than it should be because I was doing a bunch of testing in Toddle and figuring out my way around

    In the β€œChanged on your branch” section, I hit reset on the one page in that branch and it deleted everything on the page returning it back to default and now every component is broken because there were multiple links to the page(APIs, Formulas & Workflows).

    Is there a way to recover this?
  • .kittiphum-1332756474304266310

    Kittiphum

    1

    2 months ago

    Issue with preview and builder
  • firdaus___-1332603861961281536

    Mr

    5

    2 months ago

    og:image, title and description only work on branch link
    hye, i;ve setup page meta, but somehow it work only on branch link not on live custom domain site.

    on browser it working as usual but not on other platform like facebook etc

    i did enable server side fetching and autofetch how to fix

    now : it show data fallback i set on project

    i want : dynamic data meta fetch from server

    thank you
  • uunicode-1332489703395688599

    unicodes

    0

    2 months ago

    How to simulate On Success in context?
    I need to implement logic that triggers an 'On Success' action after calling a workflow that interacts with an API. My initial idea was to use a formula in the context to handle the API response and reply accordingly. However, this approach would require defining separate 'On Success' and 'On Error' contexts for each API, which could quickly become overwhelming and lead to excessive context definitions. Do you have a better approach or suggestion that might simplify this process?
  • jehex-1332277231413624884

    Jehex

    15

    2 months ago

    Issue Initial Value / Current value of an array
    Hello, I have an issue where I use a context variable to verify the type of user and according the result, generate an array with items predefined ( for a menu ) Problem is that when my condition is meet, it's correctly set the array as initial value but the current value is not update. It's probably obvious but I dont see how update my array as current value ( maybe on load? ) Thanks
  • gabosca01-1332127500519608421

    Gabriel Salazar

    10

    2 months ago

    Using toddle url as webhook
    I am setting up an endpoint to handle a webhook from a payment gateway in Toddle. According to the documentation:

    "Once the customer's browser is redirected, Flow will respond via a POST request to the callback URL provided by the merchant in the url_return parameter, passing a parameter called token. The merchant must implement a page to capture the token parameter sent by Flow and then consume the customer/getRegisterStatus service to obtain the registration result."

    The webhook sends a POST request with the content type application/x-www-form-urlencoded, and I need to capture a parameter called token located in the body of the request.

    How can I configure a handler in Toddle to receive and process this type of data correctly?

    Additionally, are there any extra configurations or best practices I should consider when handling POST requests in this format within Toddle?
  • benjamin.h-1332085962964074506

    Ben H

    23

    2 months ago

    redirecting apex domain to www
    So, my understanding is that Cloudflare, and hence toddle, do not support apex domains. The workaround is to setup a redirect from your apex domain to the www domain. However, it appears that the DNS I'm using, Google Cloud DNS, does not support URL forwarding. And the registrar I'm using, porkbun, only offers URL forwarding if you're using their nameservers. My conclusion is that I must either (a) change my DNS provider to one that supports URL forwarding, or (b) use a redirect service like redirect.pizza. Does that sound right?
  • petoardo-1332018584502931516

    Palu

    βœ…1
    2

    2 months ago

    Can't get data from iTunes API (Day 2 tutorial)
    In the video Andreas just pastes the URL, but when I do don't get any result
  • uunicode-1332004405880426516

    unicodes

    βœ…1
    3

    2 months ago

    Avoid consecutive GET
    Is there a way to fuse them? Path like [systemSkills, name] ?
  • quietrocket-1331985078250770464

    QuietRocket

    πŸ™Œ1
    26

    2 months ago

    Open Source Editor
    Hi there.

    I really love Toddle. As a software engineer transferring my workflows and projects to Toddle, I sometimes find limitations in the editor, and often times I wish to experiment. For example, I'd really like to add generative AI capabilities within the editor.

    When will the Toddle Editor be open source? It's probably a oversimplification to say that sharing and "open-sourcing" the editor is as simple as sharing a gigantic JSON file, but it does seem that way given Toddle is made in Toddle πŸ˜…

    Thank you. I really can't wait to tinker with the editor itself and bring back to the tool and community.

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.