formio / ngFormio

JSON powered form rendering library for AngularJS + Form.io.

Home Page:http://formio.github.io/ngFormio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unauthorized when get Existing Resource Fields

sonnguy opened this issue · comments

Hi everyone,
I got the error with api get form resource (https://api.form.io/form?type=resource&limit=4294967295&select=_id%2Ctitle%2Cname%2Ccomponents) in my project.
Then I try the formio demo on this page (http://codepen.io/travist/full/xVyMjo/) and get the same error, pls refer image below.
screenshot_1
screenshot_2

Can anyone tell me the root cause and how to fix that error?

Thanks.

Hi Can anyone help us or Demo how to implement the Existing Resource Fields in Formio ? i search a lot on how to implement this but it seems that no one has implemented this function ? even their documentation https://help.form.io/userguide/existing-resource-fields/ has not provided an instruction on how to implement the function

Thanks in advance .

Hello Son,
This is William with the Form.io support team.

Thanks for reaching out!

This is happening because you do not have the correct READ permissions setup for the Resource you are wanting to add to the form. If you wish to have Anonymous users submit this form, then you will need to add the Anonymous role to the READ ALL permission of the Resource form access settings.

On another note, Form.io offers support packages as well as development services to help with your application. These services connect you directly with a Form.io developer and can be a huge help with your app. Please let me know if you’re interested, I’d be more than happy to send you additional information.

Please let me know if you have any further questions or concerns.

Thanks,
William Gay
Form.io Developer Support

Hello Nickolos,

This is William with the Form.io support team.

Thanks for reaching out!

These are implemented within the portal interface using the same method described at http://formio.github.io/formio.js/app/examples/custombuilder.html

If you wish to mimic this behavior, then you will need to implement it custom.

On another note, Form.io offers support packages as well as development services to help with your application. These services connect you directly with a Form.io developer and can be a huge help with your app. Please let me know if you’re interested, I’d be more than happy to send you additional information.

Please let me know if you have any further questions or concerns.

Thanks,
William Gay
Form.io Developer Support

Hi @wag110894

I am creating a project that has to do with different forms , and by that i embedded the formio and form builder to my project in custom , can i ask if there are any tutorial on how to create a view for a submission as a disabled filled out webform or render the form as html with its submission data if its embedded in custom? because this link :

http://formio.github.io/formio.js/app/examples/htmlview.html

has a tutorial but its is only for subscriber or i need to subscribe to formio package first before i can use that features ?

Thanks in advance,

Hello Nickolos,

That example will work without being a form.io subscriber. It will display a rendered submission result. You can also present a submission in disabled mode by either setting the form src to the submission url (/form/:formId/submission/:submissionId) or setting both the form and submission attributes and set options.disabled = true.

Please let me know know if you have any further questions or concerns.

Thanks,
William Gay
Form.io Developer Support

Hi @wag110894

Thanks for response ,

i just wonder how can i find my formId and submissionId ? since both of them are in separate function (add_Forms And submit_Response) As per this sample tutorial (https://examples.form.io/wizard/submission/5a542c9e2a40bf0001e0f8a9 ) i am so confuse where this ID (5a542c9e2a40bf0001e0f8a9) came ?

Thanks in advance.

Hello again.

FormID and SubmissionId generated on the server when they are saved. You can get them either from looking at the URL in portal or querying the Index endpoints. For example, do a get to https://mypoject.form.io/form and you will get back all the forms with the ids. Then do a get to https://myproject.form.io/form/:formId/submission and you will get back all the submissions with the Ids.

You can also find the Form ID by clicking on a form within your project,the Form ID is appended after 'form' within the URL like. Seen in a red box on this screenshot. https://screencast.com/t/je8FtI67Ks.

You can also find the SubmissionId within the data tab of your form. By selecting a submission and then clicking 'View', the Submission ID is after 'submission' within the URL. Seen in a red box in this screenshot. https://www.screencast.com/t/6JAlxHMLy

We also offer support and training packages if you are interested.

Thanks,
William Gay
Form.io Developer Support

My friend @wag110894

please see this Populating Data To a Form using (Formio) #628

Hi, I got the same error, I can use the forms in my app perfectly, but the console show the Unauthorized anyway, I changed all permision to Anonymous and the error still shows

error

This is just throwing an error to load your Project. If you need to do this anonymously, then you will need to set the Read All permission of your project to Anonymous within the "Access" section of your project.

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!