PricingBlog

Help forum

  • uunicode-1277946755023110245

    unicodes

    2

    1 year ago

    Is possible to remove an element from HTML page?
    In JavaScript, I usually do this by adding a class name to the parent, like ToDo-Parent, and if there is a click on a specific button within that parent, I remove the e.target (ToDo-Parent) from the HTML. Can this be achieved in Toddle?
  • basfenix-1277903826069753856

    Bas Fenix

    2

    1 year ago

    How to parse a CMS json content object to toddle elements?
    I'm working with a CMS API that returns JSON data for content pages. My question is twofold:

    How can I dynamically convert this JSON into Toddle elements?
    Specifically, how do I handle dynamic elements like tables or checklists, that aren't present on every page?
    I understand binding fixed elements (e.g., headers, text) to API responses. But I'm unsure how to approach rendering variable elements that are not fixed on every page but only for a specific page.

    Any insights or best practices would be appreciated!
  • flo_nocode-1277846188804149329

    FLOnocode

    5

    1 year ago

    Project : Build a local marketplace to strengthen local consumption in the city with Toddle ?
    Good morning,

    I'm looking for a tutorial that explains in detail how to create a local marketplace for a city.

    The idea is to reference all the different businesses within the city with the different businesses (bakery, hairdressing salon, restaurant, children's bookstore, etc.) to reinforce "consuming close to home".

    In terms of functionality, there will obviously be a smart search filter.

    The possibility of integrated geolocation in relation to its position,

    Opening and closing times.

    A photo gallery of products and services.

    The possibility of producing testimonials on the platform for people who have identified themselves with their first name, email address, etc.

    There would therefore be a page visible to the consumer with their profile and sellers would also be able to edit their business page on the platform.

    This last function would be for later because I want to iterate on it little by little.

    I want to know what are the best ways to start developing this type of web app on Toddle and what content will allow me to advance on a marketplace step by step.

    Perhaps you can recommend all videos that have already carried out this type of use case, please.

    Ps : Is it possible to deconstruct with the difference function that this would represent in the context of a non-profit association for example.

    Or before getting started there are red flags to take into account

    THANKS
  • nathandh.-1277817333867614372

    nathandh

    2

    1 year ago

    Preferred method for fetching remote data
    Say I want to click a button, perform a GET request, and replace the content of static elements on screen: heading, paragraph, image. What's the preferred method of doing this?

    What works is to:

    1. assign a click event to button
    2. perform the request
    3. Set the returned data to a variable
    4. Bind the static content props to the content of the variable, such that as it's updated (on click) the content updates

    This works, but I'm wondering if there's another / better way? Is "storing remote data in a variable and binding to content" the preferred "toddle" way?
  • shiva_46019-1277748295485362207

    shiva

    1

    1 year ago

    how do I create a checkbox in toddle?
    Trying to create a checkbox, let me know how can I do that
  • samuelt_19895-1277732918495543336

    Samuel T

    16

    1 year ago

    Cant delete page
    Help, I had a page get duplicated somehow after I refreshed the editor, and I can't delete the duplicate now
  • toddledoodle-1277691965101572158

    m

    75

    1 year ago

    Pagination Conflicts with Query All Data
    Hello! I set up a pagination variable from my backend (Xano) to include query parameters for 'page', 'offset', and 'per_page' and it seem to work as expected. However, I also need to query all data for my sort and filter through <input> and <select> elements. The pagination is preventing all data to render through the filter. I am not sure how to think through this. Appreciate any help!
  • drhariri-1277673908643958815

    DrHariri

    3

    1 year ago

    Displaying/Working with Context data in component?
    Hello!
    I was wondering if there is an easy way to expose "context" data within the receiving component to make it easier to work with the incoming data being passed to the component from its parent page?

    I can see the data working fine on browser live preview, but it is harder to work with everything being "null" within the Toddle editor.
  • tomthebigtree-1277609304463114362

    Tom Ireland

    1

    1 year ago

    Is there a way to get the attributes of a web component?
    In my Carrd-style app, I'm looking to build a component that gets the attribute names and types of child components. For example, my hero component has the attributes heading and text , both of which take a string. Is there a way to dynamically obtain these to then create some kind of attribute control component?

    This might also be useful for @Victor Giron (for the future) when working on his UI kit so that each component has a set of controls that can be adjusted on the screen to preview the component before copying it.
  • needtheanswers-1277606575342882900

    needtheanswers

    1
    24

    1 year ago

    dynamic file uploader component
    Hi,
    I´ve built a file upload component that I want to use on multiple pages. But how do I access the file now that it is "in" a component?
    I´ve tried to set up event which gets triggered on input but that doesn´t seem to make sense in my case.
  • mxi012-1277570793160835073

    𝓜𝓪𝔁𝓲

    0

    1 year ago

    Set refresh-token cookie
    Hi there, im using "/.toddle?access_token=" to set the access token, but i need also to set an refresh-token.
    My idea was to set it also as http cookie and perform session updates / token generations server side via a custom api, and push them directly to the http cookies.

    How would you do it in toddle?
  • tomthebigtree-1277562865938731008

    Tom Ireland

    1
    4

    1 year ago

    Help with understanding contexts
    Hey, toodle community. I'm struggling a bit with understanding contexts for getting component data back up to the parent. I'm trying to send data back from a component to the HomePage. The component sits within a parent component on the HomePage. It was working okay when the child component was on the HomePage itself but as soon as I shifted it into a parent component, the context workflow stopped working. I'm very much likely misunderstanding how to use contexts and/or doing something wrong.

    I put a wee YT video together (<4 mins).

    https://www.youtube.com/watch?v=IfGdaDdkmTE
  • mxi012-1277544293522739294

    𝓜𝓪𝔁𝓲

    2

    1 year ago

    How to use custom actions?
  • beameupskoti-1277515665921802290

    DameStJohn

    29

    1 year ago

    Maximum call stack size exceeded
    Huge problem! @Andreas Møller @NoCode ProCode . I can't access anything on this page. Is my work recoverable?
  • switchman8850-1277464948653690931

    switchman8850

    8

    1 year ago

    Access token not accessible in editor
    I have a login component that works perfectly, resulting in a cookie set for my access token.

    I then have another component that calls an auth/me endpoint upon a button click. This is an authenticated endpoint, and thus the access token gets sent. This should, ideally, return the user information.

    I want to use the returned id of the user in something, but I am unable to reference it in a formula as for some reason I don't get an access token when using the editor (which makes it impossible to reference a result from the api call in a formula). If I go into preview, I can login, get the access token, and the auth/me endpoint works. But this does not happen in the editor, and the problem with this is that I need to get data returned from the auth/me call in order to be able to reference a specific field from it in a formula. Any ideas on how to fix?