Forums

Reload

U Can Drive 15 Apr, 2018
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
healyhatman 17 Apr, 2018
Answer
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?
U Can Drive 17 Apr, 2018
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).
healyhatman 17 Apr, 2018
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.
U Can Drive 17 Apr, 2018
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.
healyhatman 17 Apr, 2018
{view:field_text_2} in the custom code, not {view:view_field_text_2}

Is your custom event called Change?
U Can Drive 17 Apr, 2018
Yes it is called "Change", I had tried {view:field_text2} but that made no difference.
healyhatman 17 Apr, 2018
{data.set:Result$(var:Switch)}
{view:field_text_2}
U Can Drive 17 Apr, 2018
I copied that code into the custom code but has made no change. Still disapears and no change to the value.
U Can Drive 17 Apr, 2018
Actually, scrap that, it works perfectly on the actual page but not in the preview.

Thank you so much, I really appreciate your time🙂
This topic is locked and no more replies can be posted.