Returning Objects/Lists from Functions

Hi guys,

I’ve searched the forum and not found anything exactly like this…

In the following example, I cannot return an object from the function, but I can return a list.
https://x.thunkable.com/copy/2d4bd61f771a1bef5e3b9dce187058f6

Is this a bug? It seems like a bug. (I’ll be happy to report it, but I just want to check first.)

Thanks!

Screenshot for anyone who doesn’t want to open the project…

Directly can’t, but through a variable

изображение

or this

изображение

or

изображение

Thanks for the workaround @actech, but I still think it’s a bug.
:laughing:

I agree. You can write to developers about this bug - https://github.com/thunkable/thunkable-issues/issues

BTW, The bug looks to be slightly more complicated than just returning an object from a function. For example, in your repro app if you just have your function return 'get object from JSON [from Text_Input1 get Text]', then it will work correctly.

-Mark

1 Like

Thanks for looking into it Mark!

1 Like