Form Image being sent as attachment

19 views
Skip to first unread message

Oscar

unread,
Mar 2, 2020, 5:05:35 PM3/2/20
to Orbeon Forms
I have a form that is being sent to a third party application.  The form is a static image in the form. This image is a png and it is a company logo. 

Untitled picture.png



We have modified the send button to a custom is-send.xpl.
When the application receives it, it received the pdf that was created but also a second attachment. This second attachment is the image that is on the form (M).
This is the process for the button:

Untitled picture2.png


Any ideas?

Regards,

Oscar

Alessandro Vernet

unread,
Mar 3, 2020, 1:34:30 PM3/3/20
to orb...@googlegroups.com
Hi Oscar,

Indeed, if you create a static image in Form Builder, that "Static Image"
control is a control like any other control: in the data, there will be an
element for that control, and and the data associated to the field is store
in that element (here, the link to the image). Are you saying that you
wouldn't like to have that element and related link in the data?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

Oscar

unread,
Mar 3, 2020, 4:05:18 PM3/3/20
to Orbeon Forms
Alex, 

The PDF created has the image as it is in the first picture and this is the desired behavior. However, it also creates a second attachment that includes solely the image. Therefore the third party application receives the desired PDF with the same layout of the form, but a separate attachment with the solely the image.

Regards, 

Oscar

Alessandro Vernet

unread,
Mar 3, 2020, 4:40:25 PM3/3/20
to orb...@googlegroups.com
Hi Oscar,

So you're saying that the problem is with the email sent by Orbeon Forms,
that contains as attachments both the PDF (with the image), and the image
(as a second attachment), and you're saying that you'd only like to have the
PDF. Is this correct?

Oscar

unread,
Mar 3, 2020, 6:23:10 PM3/3/20
to Orbeon Forms
That is correct Alex. Since the image is only supposed to be a visual on the form, we would not like the image to be sent as an attachment. 

Regards, 

Oscar

Alessandro Vernet

unread,
Mar 3, 2020, 6:47:41 PM3/3/20
to orb...@googlegroups.com
Got it Oscar, thank you for the precisions. We'll think about what we can do
about this, and will follow-up on this thread.

bruno.buzzi

unread,
Mar 4, 2020, 1:43:44 PM3/4/20
to orb...@googlegroups.com
Hi,

If the image is always the same image you can put it as form banner (not as
an attached image on the form) and if it is a banner (set in the css) it
would not be sent by mail.

Just an idea...

regards,
bruno

PS: how to set a banner in a form:
http://discuss.orbeon.com/Orbeon-Form-Logo-Solved-td4656512.html

Alessandro Vernet

unread,
Mar 31, 2020, 1:47:24 PM3/31/20
to orb...@googlegroups.com
Hi Oscar,

Getting back to this one, if I create a form with a static image, I am not
seeing that image attached to the email sent out by Orbeon Forms. The email
(see below) has 2 attachments: the XML and the PDF, and the image correctly
shows in the PDF, but isn't attached as a 3rd file. Are you seeing something
different? Are you using Orbeon Forms 2019.2?

email.png <http://discuss.orbeon.com/file/t119778/email.png>

Oscar

unread,
May 4, 2020, 8:33:57 PM5/4/20
to Orbeon Forms
Alex,

I am getting back to this thread. 

I apologize, the information previously provided was mistaken. The attachments are not being sent by email. They are being sent by a custom is-send.xpl the lofic for the send is as follows:

<property as="xs:string" debug="xxx form submit" name="oxf.fr.detail.process.is-send.*.*">
        require-uploads
        then validate-all
        then save
        then send(uri = "/fr/service/custom/orbeon/echo", content = "pdf-url", replace = "none")
        then send(uri = "/fr/service/custom/rpic/is-send" , method = "post", replace = "none", nonrelevant = "keep")
        then success-message("save-success")
        then result-dialog
        recover error-message("database-error")
    </property>

As of right now, we have removed the images from the form I am attempting to setup a local environment to test this. However, it is still my understanding that the images were still being sent as a second attachment to the third party application

Oscar

unread,
May 4, 2020, 9:17:51 PM5/4/20
to Orbeon Forms
Bruno,

I think the post you referenced was the logo at top right? I have a logon on the form. The rest of the form's logos are set to the value that we are expecting.

Alessandro Vernet

unread,
May 5, 2020, 7:25:24 PM5/5/20
to orb...@googlegroups.com
Hi Oscar,

Got it, then I imagine that this is something that you will need to debug in
your `is-send.xpl`.
Reply all
Reply to author
Forward
0 new messages