Hello want to create multi step form for multiple users.
Each user will have the permission to submit multiple forms and then edit those forms from his/her account.
Each user can only have access to the forms submitted by him/her and not other users forms.
Is this possible with modx current admin panel?
Do i have to download an extra package?
Or do i have to do it by writing my own code?
Hi, thanks for your quick response.
I’m from Cyprus. And i speak Greek/English.
No i do not use any extra yet. I was planning to use Formit, but i don’t know if it is possible to give access to users to view or edit their own forms after submitting them with formit.
I want to know your suggestions on this topic as soon as possible. Thanks again
Do you want a form that they can copy and duplicate? Is this within the modx manager or are they common (front-end) users?
If they will be user resources then, like a personal profile, the data would be limited to only that user, but there are other ways perhaps
Formit is good, how do you want them to be able to edit, just fill in new info or something else? If you can provide more info on what you need we can help understand the best way.
BTW, a big thing with Modx is, the core doesn’t do all that many extra functions. Users and several other basic functions, but not too many. This keeps the core secure and stable.
So, you will generally use quite a few Extras. Login for front-end users is a common one, and more specialized ones too.
You can also do custom snippets anywhere on your page to provide dynamic or other output
In general i want users to be able to:
Create a new account and login.
Then the user can be able tou fill a form
and then be able to edit this form
and then be able to submit a new one (not duplicate),
and a new one…(Eventually he/she will be able to view/edit a list with all the submissions)
So, i have installed formit and i was able to submit a form with a simple textfield. Then i have installed formit2db and the form wasnt sumbitting to the backend. Then i found out that the problem was created after installing formit2db. Then i uninstalled formit2db and the form was sumbitting the data properly. Do you know what am i doing wrong?
It seems to me this is effectively a function like “my forms”. I don’t think this is too difficult.
So on the form you will probably need a posthook, to save the form in the format you want, with the user id of course. The form itself is just going to ship off the data by email or whatever, so any saving would be an additional function. Many ways to do this actually.
Then, you would need a snippet that would search that db for the user id, then output any files. The current user id will always be used, so they only see their docs
So, formit sumbissions table does not include user id from what i can see in the data structure.
I need to add the user id in formit and then use the posthook to save it
Well, formit will save an html form I think, is that the format you want? I don’t know if you could re-purpose one of the fields related to users, maybe you could, otherwise you would probably need to make a custom database unfortunately.
My thinking is perhaps you could save this form as essentially an html form, you still want them to be able to change the form, right? That’s why I think keep it in html.
What functions do you want them to have? Downloader-R would help you let them download the file locally.
My thinking is, on the appropriate page, you just have a small snippet that searches the user table for the current user, and outputs the forms. This would still basically be in html, the forms could all output completely, or something like getImage could get the file list to output.
Pls tell us moreb about what you want the functions to be.
Bruno my code is based on your code. I have a custom table in db called modx_user_forms.
And i want to edit those forms. But nothing seems to works, plus when page loads im getting an error ( Failed to create object of type: )
You can see my progress below: