I have a requirement to attach a PDF file with a form created by using Orbeon Form builder. Is there an inbuilt form builder control which I can use for this and please help me to retrieve the attached PDF file when the Orbeon form is submitted.
Upon users submitting the form, Orbeon Forms can run a process you define. This process can use the send() action to have the data entered by users sent through an HTTP POST to a service you provide.
If files were attached to the form, the data your service receives will contain one or multiple URLs pointing back to Orbeon Forms. Your service can then use those URLs to retrieve the attachments. So your service can make those calls back to Orbeon Forms and retrieve the files, it will be need to be authorized to do so.
Related
So I'm working on this django web app and I want to create a contact me form for my client. My client wants the users of his website to be able to send him emails directly from the form available on the platform. But my client uses a free yahoo email address.
I'm kind of confused of where to begin. But here is my suggested approach see if you can give me an advice:
1- create a form in the forms.py with the different fields of the form.
2 - link the form to the template.
3- create the view for the contact form.
4- add the path in the url pattern.
I read an article that says I need to go through an email service like SendGrid to actually send an email. But it said that I need a professional account to be able to do it.
I really appreciate your attention.
Your way to go looks good.
You do not need any sending service, as long as you have a proper SMTP account to use for sending.
Just add the SMTP credentials to your settings.py and you can use the django core functions to send email messages.
https://docs.djangoproject.com/en/4.0/topics/email/#send-mail
https://docs.djangoproject.com/en/4.0/topics/email/#smtp-backend
I want to store things like Browser type and GPS locations for mobile devices along with user input data.
I know how to set up a form in Django so that the user inputs are stored in the database. But how would I go about executing a Javascript function that will a return a value to be stored in the same model as all the user inputtext in the form?
I found reasonable two ways:
I would go for api and do request to server with information you want to store and put it to your model (for instance REST django-rest-framework). But its more complicated since you need to handle authorisation.
As altenative to api you could create hidden fields in form which would be filled by js code executed from the browser. When user clicks submit button he sends you data with no need to manually provide it.
I want to know if I can submit a form in django without user interaction so that it acts just like when a user posts a form. Here is my situation:
User submits data to payment gateway.
Payment gateway responds with data which has to be validated.
User redirected to payment gateway and more data has to be posted to gateway.
One option for me is to render another form for the user after step 2 which can then be used to post the data and redirect for step 3. However the user has to click a button again.
I couldn't find anything relevant to my situation about submitting forms with django.
Is there a way I can do this without the user interacting again for ease of use?
Background: I want to make a form in SharePoint for the user to submit vendor information. They fill out the form and attach a document with products and pricing. I can't figure out how to make a form that I can publish to SharePoint to do this. When I use InfoPath's file attachment it fails to publish. I tried using info from this link here but I'm not sure that it's actually a SharePoint form instead of a standard form.
My solution doesn't need to use the attachment I just want users to be able to easily submit the form with the attachment at the same time.
P.s. Sorry if my question is bad. First time using SharePoint, InfoPath, and posting here. Thanks in advance.
Any list that supports attachments should allow you to add an InfoPath form control for that field which will allow the users to add the attachment as part of the form submittal.
To optimize my page I want users to be able to fill out forms without being logged in, but then ask them for their password upon submission. I already know I can use &next= to redirect the user, but then all the POST data of the form is lost. Is there any built in way to have the user login and then resume to where he has been including post data he just sent?
If you have also file in form, then session is not useful for you.
Second solution is save data into models and after login, you can use saved data to link with logged in user as said by #doniyor.
The best way is to use django-formwizard.
Django comes with an optional “form wizard” application that splits forms across multiple Web pages. It maintains state in one of the backends so that the full server-side processing can be delayed until the submission of the final form.
Here the link.
https://docs.djangoproject.com/en/1.7/ref/contrib/formtools/form-wizard/