TaskDialog.FooterText html text not rendered

TaskDialog.FooterText html text not rendered

respresso
Contributor Contributor
704 Views
1 Reply
Message 1 of 2

TaskDialog.FooterText html text not rendered

respresso
Contributor
Contributor

Document shows TaskDialog.FooterText can be a href and will be rendered as a linkGUID-6D0C2A00-3CB5-4963-B108-515FA6924728-low

 

but I am getting

2019-09-27.png

 

with this code. How can I get href rendered as that in the document?

         dialog.FooterText = 
                "<a href =\"https://mysite.com/ \">"
                + "Click here</a>";

 

0 Likes
Accepted solutions (1)
705 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Maybe you can remove unneeded spaces, e.g., before the equal sign?

 

I would suggest looking at a sample that works and study the differences.

 

Maybe a sample demonstrating this is included in the ADN UI labs?

 

https://github.com/jeremytammik/AdnRevitApiLabsXtra

 

https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/2_Revit_UI_API/SourceCS/3_TaskDialog...

 

https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/2_Revit_UI_API/SourceCS/3_TaskDialog...

 

  myDialog.FooterText = "Footer: <a href=\"http://www.autodesk.com/developrevit\">\
Revit Developer Center</a>";

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder