I'm having some problems with a basic "Switch" & "Reload" Event.
I'm using a dropdown to select either "Yes" or "No" with an "Event" attached to cause "Results" to reload.
In the Setup area I'm using a "Switch" function to change the value of "Results" to either "You Bet" or "No Way"
Problems:
1. While the Debugger shows the value is available it doesn't show in the "Results" box for the first attempt, maybe shows on the second or third change.
2. The whole page seems to reload not just the "Results" box.
https://ucandrive.com.au/index.php?option=com_chronoforms6&chronoform=testform
I'm using a dropdown to select either "Yes" or "No" with an "Event" attached to cause "Results" to reload.
In the Setup area I'm using a "Switch" function to change the value of "Results" to either "You Bet" or "No Way"
Problems:
1. While the Debugger shows the value is available it doesn't show in the "Results" box for the first attempt, maybe shows on the second or third change.
2. The whole page seems to reload not just the "Results" box.
https://ucandrive.com.au/index.php?option=com_chronoforms6&chronoform=testform
Are you maybe sending your reload event to your main Load event, instead of to a separate event? Got a screenshot of your Setup tab, and of the settings for the results and dropdown fields?
Thank you for that, maybe, I've attached the setup view and the designer view of the relevant fields (at least what I think you need to see).
https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5299-how-to-reload-a-field
You need a separate event to perform the reload, not rerun the original load event.
You need a separate event to perform the reload, not rerun the original load event.
Thank you for that, I really do appreciate the help. I half know what I'm doing.
Now the Result field just disappears and there is no change to it's value.I have made a new event and put the "Switch" in there and the "Custom Code" as shown.
Oops, sorry attached multiple times without realising.
Now the Result field just disappears and there is no change to it's value.I have made a new event and put the "Switch" in there and the "Custom Code" as shown.
Oops, sorry attached multiple times without realising.
{view:field_text_2} in the custom code, not {view:view_field_text_2}
Is your custom event called Change?
Is your custom event called Change?
Yes it is called "Change", I had tried {view:field_text2} but that made no difference.
{data.set:Result$(var:Switch)}
{view:field_text_2}
{view:field_text_2}
The new event
I copied that code into the custom code but has made no change. Still disapears and no change to the value.
Actually, scrap that, it works perfectly on the actual page but not in the preview.
Thank you so much, I really appreciate your time🙂
Thank you so much, I really appreciate your time🙂
This topic is locked and no more replies can be posted.