Help forum
- Discrepancy Between Variable Value Logged to Console and Current Value in Toddle
KillerK009
6 2 months ago
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 ? - Auth token on toddle editor
A-Chivas
55 2 months ago
do we have a problem with auth token on the toddle editor , cant login and save token there , it keeps me signed out - Defaut class color outline active in another class
Jehex
4 2 months ago
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 - Grid Template Area
Raphael Walters
3 2 months ago
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 ? - Replace All, Loop?
Kawwl
2 2 months ago
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 . I need to iterate over , or "know " how to replace all instances in a string , with new data , based on another array . Hello [text _1 ] this is a string . [text _2 ] [ { "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 ) Hello [0 ] this is a string . [1 ] Any ideas ? - Accidentally deleted all changes
.
6 2 months ago
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 ? - Issue with preview and builder
Kittiphum
1 2 months ago
- og:image, title and description only work on branch link
Mr
5 2 months ago
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 - How to simulate On Success in context?
unicodes
0 2 months ago
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 ? - Issue Initial Value / Current value of an array
Jehex
15 2 months ago
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 - Using toddle url as webhook
Gabriel Salazar
10 2 months ago
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 ? - redirecting apex domain to www
Ben H
23 2 months ago
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 ? - Can't get data from iTunes API (Day 2 tutorial)
Palu
β 12 2 months ago
In the video Andreas just pastes the URL , but when I do don 't get any result - Avoid consecutive GET
unicodes
β 13 2 months ago
Is there a way to fuse them ? Path like [systemSkills , name ] ? - Open Source Editor
QuietRocket
π126 2 months ago
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 .