Pricing Blog

Help forum

  • neville9288-1319433146797658124

    Neville

    0

    10 months ago

    Export theme colour variables from package?
    Hello folks,

    I've built a package with 1 exported component. In the package itself, I've defined a bunch of colours in the (Default) theme. How can I make those colour variables visible in anything I wrap in that component?

    I've read the documentation and I know I can export components, custom formulas, and custom actions. I'm now (laboriously) testing to see how I can use custom formulas to make them visible, but any help or suggestions will speed up the process, thanks!
  • ssssadsadasd-1319415619967258675

    ssssadsadasd

    9

    10 months ago

    Supabase returns 201 but no row is created
    Super weird situation that got me stuck.
    I want to insert a new supabase row and it returns a 201 (see pic). Also in the logs it shows that they were successful. The table has RLS disabled.
    However, no new row has been created in the table (as confirmed also by SQL queries).

    I have tried every possible configuration in the Toddle API but could not make it work. When I run the SQL in the Supabase dashboard it works though.

    any idea why this happens? thanks
  • rasacl_-1319370131062788138

    RasacL

    0

    10 months ago

    How do I subscribe to Supabase websocket and get latest data.
    I want to fetch some data that is being added to supabase using websocket connection and display the same in the UI. Right now, I am making too many API calls and that's affecting the performance on my supabase db, Please suggest me how to get the websocket connection working in toddle.dev.
  • yoelfdz-1319350469583310918

    yoelfdz

    9

    10 months ago

    Help modals keep showing up
    Love the new help modals/tutorials but for some reason they keep showing up. Any way to prevent that?
  • saillmone-1319325572198830141

    saillmone

    7

    10 months ago

    How to edit value of nested object
    Hello guys,
    I have a "data" variable which groups together several objects.
    I would like, for example, to modify the quantity of the variant items[1].

    I suspect that I should use the Set & get function but I cannot directly reach the right data.

    Can someone help me?

    Thanks guys!
  • tomthebigtree-1319304562217193563

    Tom Ireland

    27

    10 months ago

    Approaches to server side form validation - toddle x Supabase
    Hey, folks. Has anyone got any tips/tricks on how best to handle form validation server side when using toddle x Supabase?

    Is the answer to use Supabase Edge functions or CloudFlare Workers for this?

    Table constraints and RLS policy checks will only get you so far and I'm conscious of ensuring forms are properly validated, while reducing as much repetition fron end and server-side as possible.
  • jubilant_courgette_93644-1319110147196588092

    Dov

    3

    10 months ago

    Login page is setting cookie but not redirecting
    I have a login page which is receiving back from my server a token. It is being set correctly in cookie storage on the client, but the redirect does not trigger and the login page is reloaded.

    I can get the redirect page to load by either:
    (1) If I type the redirect url manually, then the page loads correctly (I can see that the token is being sent correctly - so the token has been saved).

    (2) Typing the credentials in a second time on to the login page and submitting, then the redirect works correctly (in this case the server will send a new token).

    What I have noticed from my server logs, is that after the first attempt to call the redirect, the server receives {{ cookies.access_token }}.

    When typing in manually (or after the second submit), the server is receiving the token. I have attached screenshots.

    The workflow is very simple (as attached).

    As per @Lucas G suggestion I put prevent default at the start of the submit workflow, but that has not helped in this case.

    Any pointers would be really appreciated.
  • higolol-1319002555698642944

    Higolol

    6

    10 months ago

    submit to API
    Help me to understand submit. I am testing in API test passes successfully, but when I press submit is not
  • miles1991-1318980270593933373

    Miles

    3

    10 months ago

    map multiple keys
    How do I get an array of objects with say 100 keys down to a new array of objects with just the 3 keys I want?

    I've tried the map formula but I can only seem to sepcify 1 key.

    Thanks
  • charlie_84787-1318930257813704745

    Charlie

    🥲1
    0

    10 months ago

    Adding a script tag just before </body>
    I'm trying to load a 3rd party script that needs to be in the body but keeps coming back with the error:
    Code found in the page <head>. Please place code directly before the </body>

    I've tried it as a component, setting script type to module, as the last element on the page but nothing seems to be working. The code snippet is pretty basic - example below:

    <script type="text/javascript">
    var vglnk = {key: '454b80f1502c'};
    (function(d, t) {var s = d.createElement(t);
    s.type = 'text/javascript';s.async = true;
    s.src = '//cdn.viglink.com/api/vglnk.js';
    var r = d.getElementsByTagName(t)[0];
    r.parentNode.insertBefore(s, r);
    }(document, 'script'));
    </script>

    Any advice on how to get around this error?
  • dr.muffinman-1318694671060439162

    Muffin

    1

    10 months ago

    How do I style the markdown block plugin?
  • xanochris-1318635847427555328

    Chris from Xano

    1
    2

    10 months ago

    How do I change page metadata?
    Can't seem to find the option for this. It just shares as "Toddle template" / "A blank template from toddle". I'm sure I'm missing something obvious, but would appreciate any pointers. Thanks!
  • asad_90597-1318634610367791166

    asad

    1

    10 months ago

    [SOLVED] how do i get the total rows of data when when using supabase range
    i'm implementing pagination and using range , the problem is how do i know the total rows of the data.
  • benjabievres-1318605232170733609

    benjabievres

    0

    10 months ago

    Dialog Box: Best practices
    Hello,
    can you please tell me what are the advantages or caveats to use Javascript "Alerts" versus a fully built Dialog box like the one explained by the excellent and straightforward video [here](https://youtube.com/shorts/cTay-PA5AS4?si=fP0gQfHKcnJ_YsC4). ?

    So far I found another tutorial that teaches the use of Javascript to create an Alert box. But my phone complains after the second time an alert is displayed (it offers me to block any new alert box), so I was wondering if it's a good practice to use that instead of creating a Dialog Component.

    Thanks 😊
  • saillmone-1318592460779421777

    saillmone

    6

    10 months ago

    How to call API in a map function ?
    Hey,
    How can I call the API x times running in the map ?
    I have a "title" input where I would like to send the data "M", "L", "XL". This means that I have to make 3 API calls.
    I watched several videos, used the AI ​but I can't do it.

    Can anyone help me?

    THANKS !