-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get form items to store in mysql #30
Comments
+1 would be great if I could add this to my php web app. I could store it as XML I suppose, but not as simple to deal with as maybe json. |
+1 |
2 similar comments
+1 |
+1 |
I'm parsing the XML with PHP and storing it in MySQL. I use the following code:
The result would be an array that you can loop through and store every field in the database. Like this If you want to convert the XML to JSON, using PHP you can, until the plugin can support exporting directly.
My site is using it here |
Nice solution @AminMkh , but i can't get option values ? |
@TeqExperts the plugin doesn't seem to support that, you can only save the options keys. It doesn't support a few other things like text fields default value, Just place holders for now. |
@TeqExperts actually I just checked the XML, it is there, it seems lost when im parsing it. I'll update my code, thanks a lot ! |
That's great. ;) just share the code for me after updating, thank you ! |
@AminMkh I tried to get values but i can't, how did you do it? |
@TeqExperts I couldn't parse it either, whenever I use
The option values are lost, I will try to find another PHP parser. I'll keep you posted. |
Sorry, don't know if it's ok to past link for ext project. But I've spent the whole day to find pretty formbuilder which works out of the box and provides json data (I'm using postgres json). http://dobtco.github.io/formbuilder/ , could not find repo with project so copied all files from this sample. |
+1 Much like @dmitri-wm I also discovered https://github.com/dobtco/formbuilder/ but it looks to be abandoned, so I have a preference to invest in a repo that is more actively developed, like yours @kevinchappell, but the JSON export is crucial for me. |
@AminMkh do let us know if you updated the parser...i'm kinda lost looking for this solution thanks in advance |
Hey guys, we created a quick function for it 😌
Example usage:
It should return:
Best 😉 |
I have tried all the PHP functions mentioned above to parse XML to JSON but none of them turned out a success.
|
There are a number of ways to accomplish data prep for your backend, which one depends on your specific app or website. I'm closing this issue as the discussion has strayed too far from topic and the topic is outside of formBuilder's scope. |
I am trying to get json formate of formBuilder and want to store into mysql database. Is there any way to do? There is no enough information on your docs. Thanks a lot
The text was updated successfully, but these errors were encountered: