time trigger with user defined function #365
-
question about the time trigger parameter. what i tried was to make de def get_timevalue() that return the value of the input_datetime_starttime, when the input_select.starttime == "usedatetime", else, it return the value of the input_select.starttime helperfield. But, it seems not to work. Is is not possible? Or am i doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The string arguments to |
Beta Was this translation helpful? Give feedback.
The string arguments to
@time_trigger
are only evaluated once when the function is defined. So the only way to have a dynamic trigger time is to define a@time_trigger
function via a closure (inner function), and convert anydatetime
value to a correctly formatted string giving the desired trigger time.