cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jaleefpk
Helper III
Helper III

HTML To export to pdf

i am trying to design HTML page of my form 

 

jaleefpk_0-1609064228287.png

i am pretty new to HTML , can any one help me , how to get the form value to html table field

for example in my html page , i have a table <html><body> <table> <th>emp id</th> <td>here i want to get the employee id entered in the sharepoint form , can anyone help me 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @jaleefpk ,

Assuming you are using a HTML Text box - it would need (using your HTML)

"<html><body><table><th>" & DataCardValue22.Text & "</th><td>"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @jaleefpk ,

Assuming you are using a HTML Text box - it would need (using your HTML)

"<html><body><table><th>" & DataCardValue22.Text & "</th><td>"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz  "<html><body><table><th>" & DataCardValue22_1.Selected.Value & "</th><td></body></html>" actually this worked,

 

can you tell me where to use .text and where to use selected.value

@jaleefpk ,

It was not evident from your post what type of control DataCardValue22 was (so I assumed Text). I also now see you have used DataCardValue22_1 (I assume this is another control).

To answer your question .Text is used for Text boxes, .Selected.Value would be for dropdown or combo box where the source field was either Choice or LookUp.  

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,578)