App Connect Data Formatter Support Product Page
Solved
days-until does not work for inputs
Reported 7 years ago
1
has this problem
7 years ago Ben Pleysier posted:
Binding the value of days-until does not work.Copy the following example into a new document, making sure that the linked files are correct.
You will notice that the content in the paragraph works well while the value for the input field does not.
As a side note, I also cannot use the value of the days-until as a filter in a Data View statement.
Edit: The emicon represents a closing bracket, got wrongly translated by forum module.
Replies
Replied 7 years ago
7 years ago Teodor Kuduschiev replied:
Hello Ben,
You need to escape the quotes in the dmx-bind:value=" ". You cannot nest quotes in quotes in HTML markup.
so that
becomes
This happens automatically when you bind the value using the extension UI, and probably you just copied and pasted this value from somewhere else in the field value.
You need to escape the quotes in the dmx-bind:value=" ". You cannot nest quotes in quotes in HTML markup.
so that
dmx-bind:value="today.datetime.daysUntil("2018-01-20")"
becomes
dmx-bind:value="today.datetime.daysUntil("2018-01-20")"
This happens automatically when you bind the value using the extension UI, and probably you just copied and pasted this value from somewhere else in the field value.
Replied 7 years ago
7 years ago Ben Pleysier replied:
Easy! Leaves me red faced once again. Thank you Teodor.