Creating an Expression

I’m trying to do the same example in this video Videos | Bubble but the step shown in min 4:13 doesn’t work the same for me as it does in the video. it requires me to continue writing the expression, but I’m not quite sure what it is I need to add for it to be complete.

Wow… Umm, OK. First: You’ve created a custom data type called “Text”!?

While Bubble will let you do that, this is kind of a bad idea as that’s so close to the primitive type “text”. This can only cause confusion down the road. (And it caused me confusion when I saw your screencap.)

What do these objects represent… SMS Text Messages or something? (It would be better to call them that. Data types are easy enough to rename.) But anyway, let’s get on with it.

Your search constraint doesn’t make any sense. What you seem trying to do is filter by a field on your “Text” object called “Unit Price.”

I would GUESS that you have Unit Price defined as a number.

And then you’re telling Bubble: Only return “Texts” where the Text object’s Unit Price is… The value of an Input field that seems to be for collecting the name of a Country.

(Which of course sounds like a hatful of crazy, because it is.)

The value in the Input element is probably of type text (the primitive type text, not your custom type Text).

There’s a data type mismatch there. The reason there is a (More…) is that Bubble is assuming that perhaps you will do some other operation on the text to turn it into a number. For example, while I’m sure you aren’t trying to do this, text operators can return numeric values. For example, if Input Type Country’s value is in fact of type text:

Input Type Country's value:number of characters

… would return a number. (The number of characters in the input’s text value.)

This topic was automatically closed after 70 days. New replies are no longer allowed.