Controlling required field constraints
Options
![FJP H](https://us.v-cdn.net/6037124/user_avatars/2387640.jpg)
FJP H
Member ✭
Hi there,
Trying out Xano with Bubble by creating a simple Invoicing tool just for fun and learning experiences.
Goal is to not store any data in Bubble.
Process is as follows:
- Button Add Invoice > Post create invoice (container) in state: initial witch only an invoice number.
- fill In additional invoice info
- Add Invoice line and after submit Post Invoice line to Camp and save invoice line and link to invoice
- Save invoice, PUT all additional information to Xano. Update state to complete
Upon Save I would be able to besides having the front-end checking on required fields, I can do the same at backend side in Xano?
Is it possible to define and check upon required fields in Xano?
Trying out Xano with Bubble by creating a simple Invoicing tool just for fun and learning experiences.
Goal is to not store any data in Bubble.
Process is as follows:
- Button Add Invoice > Post create invoice (container) in state: initial witch only an invoice number.
- fill In additional invoice info
- Add Invoice line and after submit Post Invoice line to Camp and save invoice line and link to invoice
- Save invoice, PUT all additional information to Xano. Update state to complete
Upon Save I would be able to besides having the front-end checking on required fields, I can do the same at backend side in Xano?
Is it possible to define and check upon required fields in Xano?
Comments
-
Sure. Xano has some nice built-in validators in the inputs section - check out the filters in particular. For additional validation logic, use the function stack to perform additional tests, and apply a "precondition" utility function to bounce back with an error code when it's not quite right.
The endpoints come with a single query statement in the function stack by default. But that's neither required nor best practice - use the function stack to apply logic that makes sense for your use case! -
Hey there! You can definitely do that in Xano. You can either specify filters in your database in Xano, or on the inputs / in the function stack of your endpoint!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback