I’ve tried every possible combo to make one or two button images display using PHx, but I just can’t get the thing to work:
[+phx:if=`[*submit_type]`:is=`1`:then=`button_1.jpg`:else=`button_2.jpg`+]
I set up a TV named submit_type and added two radio buttons: Button 1 and Button 2. Their values look like this:
Button One==1||Button Two==2
I’m making the PHx call from a chunk that looks like this:
<input name="submit" src="/path/to/button/[+phx:if=`[*submit_type]`:is=`1`:then=`button_1.jpg`:else=`button_2.jpg`+]" type="image" value="Send Feedback" />
Based on which radio button the user selects in the visual editor, the correct image should show, but it’s not. It’s not a broken image, the PHx is not processing. What am I doing wrong?
Regards,
Matt