[Countdown Clock] Assign input variable to "UntilDate"

[Countdown Clock] Assign input variable to "UntilDate"

  
Forge Component
(5)
Published on 2014-06-02 by Paulo Ramos
5 votes
Published on 2014-06-02 by Paulo Ramos

Hi!

Your countdown is great, but I think I'm doing something wrong... I drag your countdown to my app, but I couldn't assign my variable "deadline" to your input variable "UntilDate". I even tried to creat a Sessiogn variable, but it didn't work, I don't see the "UntilDate" anywhere to assign.

Maybe I've imported the weblock wrong... I don't know.

Thank you in advance!

Hi,

The solution has a CountdownSample module - have you seen how it is built?

Paulo Ramos wrote:

Hi,

The solution has a CountdownSample module - have you seen how it is built?

Yup I did.

But I couldn't find where the variable is assigned.

And, should I copy the whole weblock and paste in my app?


As I recall, the web block has an input parameter that you should fill in (to be clear, this means you don't use the Assign widget).

Don't copy / duplicate the block, just reference it (toolbar: Manage Dependencies) since it is a public object.

Solution

Ok thank you for your answer!

I manage to dynamically use assign to the "UntilDate" input adding a Preparation Action in the countdown weblock.. in there I can set the variable.

There's a warning about security in this script:

"HTML Injection

Ensure the expression is protected by using EncodeHTML(), EncodeJavascript(), or SanitizeHtml() from the Sanitization extension, to avoid security flaws."

Solution