[Timedropper Plugin] How to use the selected time?

[Timedropper Plugin] How to use the selected time?

  
Forge Component
(0)
Published on 2017-09-06 by Jogait
0 votes
Published on 2017-09-06 by Jogait

Hi,

I must be missing something: In my app I am using the TimeDropper Plugin as shown in the sample app, but the value of the associated variable does not change. See screenshot - I added an expression showing the value of the variable but it stays blank. 

However I see the correctly selected value in the associated input field.

Shouldn't there be an event fired by the TimeDropper Plugin when it is closed again containing the selected value?

Thanks for your help!

Kind regards,

Adrian

Solution

Hi Adrian,

The value is not assigned to the variable of the Input Widget.

To get the value you can use:

$('#<name of input widget'').val();

The value returned is of type Text of the format that you have chosen in the widget.

Thus, you can add a Javascript Statement like the one below to the Client Action where you want to read the value from the Input Widget (In the InputId parameter you put the widget Id)

Cheers,

José

Solution

Excellent, thanks a lot for your help!

Greetings,

Adrian