Skip to content
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 integrate in ASP.NET app? #39

Open
bhaidar opened this issue Apr 20, 2017 · 4 comments
Open

How to integrate in ASP.NET app? #39

bhaidar opened this issue Apr 20, 2017 · 4 comments

Comments

@bhaidar
Copy link

bhaidar commented Apr 20, 2017

Hello,
I would like to integrate the angular-surveys in my app such that a user can design a form, save the form and then later on open to submit an instance.

I really appreciate your assistance.
Bila

@mwasiluk
Copy link
Owner

Hi,
Take a look at #13
Regards

@bhaidar
Copy link
Author

bhaidar commented Apr 20, 2017

Thanks a lot. Any recommendations on how to store the form design layout and model and then later on render the form to collect responses? Just a general idea to help me integrate this amazing module in my app.

Thanks

@mwasiluk
Copy link
Owner

You need to store formData (form model)/responseData (user response) passed to the mwFormBuilder/mwFormBuilder directives in your db. If you're not using mongo in your app then the simplest way is to store it as text and parse it to JSON before passing it back to the directives.

There is no save button in the mwFormBuilder (you can use it as a part of bigger ng form), so you have to create your own button and on click just save the formData object.

Hope that helps.

@bhaidar
Copy link
Author

bhaidar commented May 15, 2017

Thanks a lot! That was helpful!

I am trying to read through the code and understand things as I might need to customize the builder. One of the things I want to add is relation between 2 questions. For instance, if Q1 has value 1, then show Q2, etc.

Can you guide me on how I can go through the code and understand how is it written to be able to customize it?

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants