I'm using jquery to populate a value from a click event:
$('#RepeatEvent').val(event.repeatflag);
where the value of event.repeatflag is 1 or 0.
The click event loads a modal popup where this code executes.
#RepeatEvent is an input where the default value of Value attribute is NULL.
The input value populates as expected -- so it's working.
What isn't working in the template is a conditional when the input value is true ( or 1 ).
The mvt:eval renders with null values, so I am not sure I'm assigning the variable correctly? Ideas?
Thanks,
Scott
$('#RepeatEvent').val(event.repeatflag);
where the value of event.repeatflag is 1 or 0.
The click event loads a modal popup where this code executes.
#RepeatEvent is an input where the default value of Value attribute is NULL.
The input value populates as expected -- so it's working.
What isn't working in the template is a conditional when the input value is true ( or 1 ).
Code:
<div class="repeatevent"><input id="RepeatEvent" type="text" value="" name="repeated"></div> <mvt:assign name="g.eventsuccess" value="trim(repeated)" /> <div id="therepeat"><mvt:eval expr="repeated $ '| test:' $ g.eventsuccess" /></div> <mvt:if expr="g.eventsuccess"> // render something here // </mvt:if>
Thanks,
Scott
Comment