HTML5 Data Bindings Formatter Support Product Page
Answered
appending formatted date to a link not working
Asked 08 Jul 2014 13:06:34
1
has this question
08 Jul 2014 13:06:34 Paola Maggi posted:
I am triyng to extract the year from a date and then appending it to a link (it is not in a repeat region as I only want the first record):<a href="gallery.asp?anno={{Foto_Home.data[0].Data.formatDate( "yyyy" )}}">
What am I doing wrong?
Replies
Replied 08 Jul 2014 13:22:39
08 Jul 2014 13:22:39 Teodor Kuduschiev replied:
Hello Paola,
Could you please provide a link to your page?
Could you please provide a link to your page?
Replied 08 Jul 2014 16:08:48
08 Jul 2014 16:08:48 Paola Maggi replied:
Replied 11 Jul 2014 13:03:55
11 Jul 2014 13:03:55 Teodor Kuduschiev replied:
Hello,
the issue is caused by the fact that the HTML Standard does not allow using quotes inside HTML attributes like href=" " etc.. And the formatted date code you are trying to use there contains quotes: "
the issue is caused by the fact that the HTML Standard does not allow using quotes inside HTML attributes like href=" " etc.. And the formatted date code you are trying to use there contains quotes: "