Xml parsing error - " help please

Avatar

Avatar
Validate 1
Level 1
fionak240180
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
fionak240180
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
fionak240180
Level 1

10-05-2015

I  have been using livecycle designer for some time but am quite new to xml.

I have added a regular button with the submit function to allow my form to be emailed and this works well.

However we would like to have the email pre-populate the subject line and body with a set of instructions for our users.

After lots of google and forum searches I have the line of xml code

submit format="pdf" textEncoding="UTF-16" xdpContent="pdf datasets xfdf" target="mailto:email@health.qld.gov.au" subject="Completed Travel Form for Approval - Traveller - Date"&amp body="(email body) "/>

but I am getting the following error  - XML parsing error:not well-formed (invalid token) (error code 4), line 10220, column 202 of file

which relates to the " after the word Date

Does anyone know how I can fix this?? and if this will do what I am trying to achieve?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

11-05-2015

Hi,

the submit element does not support the subject attribute, there is only a target attribute that contains a string build after the mailto scheme.

Change you xml source into this.


<submit format="pdf" textEncoding="UTF-16" xdpContent="pdf datasets" target="mailto:email@health.qld.gov.au?subject=Completed Travel Form for Approval - Traveller - Date&amp;body=email body"/>


Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 1
fionak240180
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
fionak240180
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
fionak240180
Level 1

12-05-2015

Hi,

I please ignore my reply above.. I have tried your suggestion again and it has worked, which is awesome.. thank you.. only now I find I am unable to have the email populated with line breaks, but rather all in one long stream of text. I have tried a couple of options for adding this break with no success 

Avatar

Avatar
Validate 1
Level 1
fionak240180
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
fionak240180
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
fionak240180
Level 1

12-05-2015

Hi,

Thanks for the reply, unfortunately the below has stopped the functionality of adding to the email, meaning my submit button no longer works at all.