As I said above. Your code was fine but you had to put the wixData right after the return and not in a new line .