App Connect Data Formatter Support Product Page
Solved
days-until does not work for inputs
Reported 31 Jan 2018 10:36:43
1
has this problem
31 Jan 2018 10:36:43 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 31 Jan 2018 11:04:21
31 Jan 2018 11:04:21 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 31 Jan 2018 11:23:55
31 Jan 2018 11:23:55 Ben Pleysier replied:
Easy! Leaves me red faced once again. Thank you Teodor.