PricingBlog

Can't seem to get the properties of the event object?

  • brobroberto-1188886734793101372

    broberto

    2 years ago

    I can't seem to wrap my head around, how to get the properties of the object in this way. It gives me like 3 properties of many.
    1188886735346737232-Screenshot_2023-12-25_at_17.50.12.png
    1
  • I tried console logging it, and any other actions, but it seems, like there is an issue.
  • lucasg-1188937780336803910

    Lucas G

    2 years ago

    Select the “target” value
  • What are you trying to save to storage here?
  • andreasmoller-1188962883418210395

    Andreas Møller

    2 years ago

    Since the event hasn't happened yet when you define the formula, the data you are seeing in the formula editor is a placeholder. The event you are logging is the actual data.
  • brobroberto-1188973858657685594

    broberto

    2 years ago

    It seems like I just can't hit this anyhow, I want to pass only clientX and Y, when I attempt to select anything else, other than those predefined values, it breaks the connection.
    1188973858397626460-Screenshot_2023-12-25_at_23.36.36.png
  • andreasmoller-1189089588526985246

    Andreas Møller

    2 years ago

    You can use the Get formula to extract “clientX” from the event
  • It will show up as null in the formula editor because of the placeholder data, but it will work when you use it
  • brobroberto-1189154492277596250

    broberto

    2 years ago

    Yeah, that's exactly the clue I needed. Still, I think this could be done with a dot notation in seconds 😄 But thanks! I can move on with my playing around now
    1189154492030144532-Screenshot_2023-12-26_at_11.34.42.png
  • andreasmoller-1189222915523223562

    Andreas Møller

    2 years ago

    It absolutely could. But there are a lot of ways that could be improved 🙂