Hello
I’m working on improving the documentation and video tutorials to explain the power of no-code formulas in WeWeb.
Are there formulas that you find really confusing? Things you’d like to be able to do with formulas but don’t think are possible?
Do you have a couple of favorite, go-to formulas that you use regularly or a use case you’re particularly proud of that you’d like to share?
My personal favorites:
- concatenating text using
+
– For example,“Hi “+ userNameVariable
to greet an authenticated user - display different content based on the device of the user with an
if
statement – For example,if (breakpointVariable = “mobile”, “This is text for mobile”, “This is text for tablet and desktop”)
- using the
rollup
formula to get all the values from a column in a collection – For example, if you have a list of phone calls in a table, to get a new list with only the information from the “duration” column:rollup(selectedCollection['data'],"duration")
- using the
filterByKey
to filter through a list – For example, if you have a list of phone calls in a table, to get a new list with only the calls where the “phone_number” column matches a specific number:filterByKey(selectedCollection,"callTo","+351-xxx-355-xxxx")
- the ability to nest formulas inside of each other – For example, calculating the
sum
of values in a list, doing a division and then using theround
formula to format the result in a nice way - the ability to write your own custom no-code formulas and re-using them throughout your project
- the ability to combine a no-code formula with JavaScript
Would love to learn more about what you love and what frustrates you about formulas right now so I can take that onboard and hopefully help more people unlock that potential.