PricingBlog

Help forum

  • prettycold_-1310853576523780106

    Sam B

    9

    1 year ago

    Create/Edit form flow
    I have multiple pages which can take the create flow or the edit flow depending on the user action. Here is what I do:

    1. I set a variable called "mode" to session storage. It may take a value "create" or "edit" depending on which button was clicked.
    2. In the first form page, there are 2 fields, say "name" and "description". It needs to be populated from database if it's an edit flow or it'll be blank if it's create flow
    3. To handle this, I have 2 formulae, 1 for name, 1 for description
    4. I call them populateName and populateDescription. I use DefaultTo and use a GET API's response against 0 and leave it blank for 1. Meaning, if the API responds with a value, that'll be populated, else it will be blank
    5. If the user wants, he/she can change the existing value and click on Submit
    6. I have two variables "name" and "description". On change event of the textbox, I set event.target.value to these variables.
    7. On Form submit, I check the mode and branch out to POST or PUT flow
    8. It branches out perfectly. In the PUT API, in the Body section, I set an object with name and description as keys and set the values (as set in Step 6)
    9. When I submit the form, it invokes the PUT request, the problem I face is, it does not send the updated value in Name and Description textboxes, it sends the populated value.
    10. I'm not binding the variables to the text boxes, since I have different flows which is why I do Step 6 explicitly

    What am I missing? Can someone help please?
  • nathandh.-1310818467036790856

    nathandh

    1

    1 year ago

    circular div glyph
    What does it mean when you see this circular glyph? Cloned a project and never seen this before
  • frontend_dev0-1310267106746437674

    Tobassum Munir

    2

    1 year ago

    can i use auto css in toddle?
    can i use auto css in toddle?
  • iamasuperuser-1310225560378802248

    Iamasuperuser

    7

    1 year ago

    Date functions
    Hi! I've discovered the NOW formula to get todays date. But is it possible to say something like "Now minus 7 days"?
    The AI bot says to use the AddDays -7 function, but that seems to be a hallucination, as AddDays doesn't exist. Neither does Offset or any other date manipulation formula. Would anyone know how I can add and remove dates from a date in order to show that variable in a Date Input field.
    Thanks
  • uunicode-1310197865229975622

    unicodes

    6

    1 year ago

    Style Scroll Bar Width or Library?
    Is there a library for a better scroll bar? The default one is impossible to style the width (width is height 😦 ), I want it small of maximum 50px.
  • asad_90597-1310039280839692358

    asad

    4

    1 year ago

    filter array with array
  • isaact7359-1309868944395337779

    IsaacT

    3

    1 year ago

    Yes, another novice who is learning.
    I have proposed to migrate an entire project I have with Xano, Webflow and OpenAI, replacing Webflow with Toddle. I hace made a lot advances in the backed

    I have to build from scratch some elements that I have in Webflow and that ridiculously I have no idea where to start.

    I've seen several videos, but none of the elements I need, starting with the simplest one. A navigation bar that has a dropdown.

    Some guidance
  • neville9288-1309841137900720179

    Neville

    7

    1 year ago

    Default font
    I need some help understanding how fonts, inheritance etc works.
    What I would like to do: set the font once and have it show up everywhere.
    What I hoped would happen: set the font on the root div and have it show up everywhere
    What I think I have to do: set font:inherit in every element of the tree
    What I think I can also do: put custom CSS in the head of each page to force the font

    From browsing around here I believe a default font is somewhere on the roadmap. In the meantime, do I understand this correctly, and what options do I have?

    Thanks for any help!
  • j.a.jj-1309839603531776050

    J.A.J

    1

    1 year ago

    Double clicking on the default "try now!" project's components results in empty page?
    is this normal?
  • uunicode-1309805418561667113

    unicodes

    4

    1 year ago

    Workflows, parameters aren't working.
    I have this workflow for "showing and hiding error messages."
    I'm passing a message (e.g., a login error) as input, but the parameter is null (the showing and hiding functionality is working fine).

    Could there be an issue with the parameters, or am I missing something?
  • nathandh.-1309729012964261928

    nathandh

    1
    8

    1 year 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?
  • frankenwompus-1309669211232145554

    Fisher

    4

    1 year 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-1309635257007472729

    zefunha

    19

    1 year 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
  • patrickmast-1309600404652298271

    Patrick Mast

    2

    1 year 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_82432-1309409325478838303

    Matt

    6

    1 year 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.