As a developer, how do you feel about working with forms?
Arif Hossain
4 replies
Being a developer, I'm tired of styling, adding validations, adding CRUD APIs, and hooking them up with the front end every time I need to create a form!
Although there are many great no-code form builders out there, most of them are built for marketers! Where I don't get the flexibility of connecting them with my own database, generating APIs & custom styling to match my website UI!
So I decided to build a developer's first no-code form builder. But first I need to make sure if it's only my problem if there's actually a market need for need.
If you are a developer & this sounds interesting, please consider joining the waitlist form 👉 https://form.softr.app.
Replies
Guillaume Rousseau@guillaume_rousseau
I use React and yup to make formvalidation
Seems quite difficult to buid a no code form validator. Bi=ut I would be glad to test your product...
SomeThing like :
const buildFormValues = (item) => {
return {
initialValues: {
name: item.name || '',
id: item.id,
changePageDelay: item.changePageDelay || 5000,
displayMessageDelay: item.displayMessageDelay || 500,
enableDisplayMessage: item.enableDisplayMessage || false,
enableDisplayEventPopup: item.enableDisplayEventPopup || false,
enableHeader: item.enableHeader || false,
titleHeader: item.titleHeader || '',
urlLogo: item.urlLogo || '',
},
validationSchema: {
name: Yup.string().max(255).required(localStrings.check.fieldRequired),
changePageDelay: Yup.number(localStrings.check.msFormat).positive(localStrings.check.msFormat)
.required(localStrings.check.fieldRequired),
displayMessageDelay: Yup.number(localStrings.check.msFormat).positive(localStrings.check.msFormat)
.required(localStrings.check.fieldRequired)
}
};
}
Share
IndieHacks
@guillaume_rousseau yeah I also do something like that.. and then you have to write the APIs as well! 🥲
@devarifhossain I use graphQl mapped to firebase noSql db which simplify a lot, just get the json payload and store it to db. But I agree that if you use Reast api on server this could be painfull but smart ORM could do the job !!
IndieHacks
@guillaume_rousseau Well I use Prisma often, but what you mean by smart ORM?