Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Writing requests #69

Open
AGLIBRA opened this issue Jul 26, 2019 · 4 comments
Open

Writing requests #69

AGLIBRA opened this issue Jul 26, 2019 · 4 comments

Comments

@AGLIBRA
Copy link

AGLIBRA commented Jul 26, 2019

Hello, could you help me write write the complete correct requests for creating questions inside a form, creating forms inside specific worskspace and also accessing responses.
I really tried finding out how, it took me a whole day as am a beginner in ror.
Thank you advance.

@sjacob-07
Copy link

Hey @AGLIBRA , were you able to figure this out? I am struggling with the same thing.

@AGLIBRA
Copy link
Author

AGLIBRA commented Nov 27, 2019

Which one from the above is your concern? Is it all of them or just one?

@sjacob-07
Copy link

In the creation of questions, were you able to add a welcome screen?

@AGLIBRA
Copy link
Author

AGLIBRA commented Nov 28, 2019

For displaying a welcome screen it goes like this inside your controller if you are working in rails
github
:
form = CreateFormRequest.execute(Form.new(title: 'HOVER 3'), token: 'your-token-goes_here').form
form.welcome_screens << WelcomeScreen.new(title: 'Good and beautiful day')
UpdateFormRequest.execute(form, token: 'your-token-goes_here')

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

No branches or pull requests

2 participants