Firstly. Wow! What a great tool. As a designer primarily, and coming from Figma, Sketch etc… the UI is a dream to work in. From a designer perspective I’ve yet to find a feature missing. Really impressed!
Ok. My issue
Have set up a User Table in Xano, setup authentication endpoints per their docs and your tuts.
Setup the endpoint refs in WeWeb, and dropped in the Xano login but just get errors when I go to test the workflow
What’s confusing to me is also the Formulas? Of course I can choose Email from the Data choices, but Password will not be an option for obvious reasons.
Yeah this is the error I get when I ‘Test Action’ on the Xano Login Action…
name: "Error"
stack: "Error: Request failed with status code 400 at e.exports (https://editor-cdn.weweb.io/public/js/chunk-vendors.01684801.js:64:1241) at e.exports (https://editor-cdn.weweb.io/public/js/chunk-vendors.01684801.js:97:3898) at XMLHttpRequest.f.onreadystatechange (https://editor-cdn.weweb.io/public/js/chunk-vendors.01684801.js:257:2255) at XMLHttpRequest. (https://browser.sentry-cdn.com/5.12.1/bundle.min.js:2:15638) at XMLHttpRequest.sentryWrapped (https://browser.sentry-cdn.com/5.12.1/bundle.min.js:2:44863)"
message: "Request failed with status code 400"
isAxiosError: true
toJSON: function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}}
config
Object
request
Object
response
Object
Here you go. Getting your formulas set up is step 1. Do the photo below and then we can see if anything else needs attention.
That plug icon is what you use to give WeWeb different pieces of data in different areas. For instance, if you want to dynamically set a bg color based on the time of day, you could do this by clicking the plug next to the bg color parameter for whichever element you want.
Then, use a formula in there that tells the system what color, based on what time of day.
This is also how you use dynamic content, and set other design elements based on data from the backend.
For your scenario, you need to get the Email and Password into that workflow. The plug is how you do it.
Sorry, the picture above shows email instead of password for the formula. But, you need to do it for both of them, in the respective fields. Email to email, and password to password.
You can copy/paste the link of your WeWeb project here in this conversation (others won’t be able to access it) or you can click on my picture to send me a private message: