Form Image being sent as attachment

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Form Image being sent as attachment

Oscar
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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/ac0c7505-c787-4865-8d27-3134b83a09a7%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Alessandro  Vernet
Administrator
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/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583260488008-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Oscar
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

On Tuesday, March 3, 2020 at 10:34:30 AM UTC-8, Alessandro Vernet wrote:
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: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/dceba331-0cfe-4e00-9c08-2a634a6f079b%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Alessandro  Vernet
Administrator
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?

‑Alex

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583271642263-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Oscar
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

On Tuesday, March 3, 2020 at 1:40:25 PM UTC-8, Alessandro Vernet wrote:
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?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/7279caa4-a884-423c-8528-7701401f9b45%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Alessandro  Vernet
Administrator
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.

‑Alex

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583279278778-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

bruno.buzzi
In reply to this post by Oscar
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

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583347421217-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Alessandro  Vernet
Administrator
In reply to this post by Alessandro Vernet
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>  

‑Alex

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1585676840548-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Oscar
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



On Tuesday, March 31, 2020 at 10:47:24 AM UTC-7, Alessandro Vernet wrote:
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 <<a href="http://discuss.orbeon.com/file/t119778/email.png" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2Ffile%2Ft119778%2Femail.png\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7sv_AwosXz-66-MC3MX-8BKZWgg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2Ffile%2Ft119778%2Femail.png\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7sv_AwosXz-66-MC3MX-8BKZWgg&#39;;return true;">http://discuss.orbeon.com/file/t119778/email.png>  

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/eed3d110-9117-4bfa-aace-69a5e35f8f1c%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Oscar
In reply to this post by bruno.buzzi
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.

On Wednesday, March 4, 2020 at 10:43:44 AM UTC-8, bruno.buzzi wrote:
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:
<a href="http://discuss.orbeon.com/Orbeon-Form-Logo-Solved-td4656512.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2FOrbeon-Form-Logo-Solved-td4656512.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEY6pBjqer37AmoaR5cioBodI3J-Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2FOrbeon-Form-Logo-Solved-td4656512.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEY6pBjqer37AmoaR5cioBodI3J-Q&#39;;return true;">http://discuss.orbeon.com/Orbeon-Form-Logo-Solved-td4656512.html

--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/abca7e77-968b-4c25-a814-1bceba1aae30%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form Image being sent as attachment

Alessandro  Vernet
Administrator
In reply to this post by Oscar
Hi Oscar,

Got it, then I imagine that this is something that you will need to debug in
your `is-send.xpl`.

‑Alex

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1588721118996-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet