Refreshing fields with display rules...

User 473299 Photo


Registered User
144 posts

When I start or refresh my form sometimes the fields with display rules appear and sometimes not.
http://quantumallergy.coffeecup.com/for … fform-new/

It's about the fields Quantum-Touch Level 1, Self Created Health and Inloopavond.

Inloopavond doesn't have a display rule, the other two do have a display rule,
coming up for this fields is very arbitrary, is this a memory issue or
do they hold old values to evaluate, I thought I was finished and could launch the form,
but two people tested and both didn't get the fields while this should be displayed according to the display rules. If I remove the rule to Always, they are shown (of course).
User 38401 Photo


Senior Advisor
10,951 posts

When the fields randomly show up is there any data in them? If so then you need to make sure to also include a NOT statement for each of the choices that you don't want the field to show for. Such as let's say we want to show a field only if choice "Other" is chosen in a group such as below:

What is your favorite letter?
( ) A
( ) B
( ) C
( ) Other

Then the logic you need to include is

If Other IS
If A is NOT
If B is NOT
If C is NOT
Then Show (insert field you want to show in conditional here)

This will keep it from retaining data if someone accidentally fills in a conditional field with text and then changes their mind and chooses a different choice. This may be why it randomly seems to show the conditional fields on refresh.

If not then ... Never mind lol.
User 473299 Photo


Registered User
144 posts

It seems to be an issue with 60% loading the display rules and 40% of the time not, but I don't understand why, so just starting with a blank form.
User 103173 Photo


VP of Software Development
0 posts

Linda Menkhorst wrote:
It seems to be an issue with 60% loading the display rules and 40% of the time not, but I don't understand why, so just starting with a blank form.

That would mean there is a mistake someplace within the rule.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 473299 Photo


Registered User
144 posts

My html script to fill some hidden input fields seem to interfere with loading the display rules.
If I remove this, than the display rules seem to be loaded ok.

<style type="text/css">.invisible {
display: none;
}
</style><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript">$(document).ready(function(){
$('input[name="email_contant"]').addClass("invisible");
var email_contant = "Text filled in and to be used later.";
$('input[name="email_contant"]').val(email_contant);

});</script>
User 473299 Photo


Registered User
144 posts

It seems to be stable now, the rule was ok. I changed the jQuery version, I used one found in earlier examples on this forum: </style><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
but changed it to:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">. Cross my fingers.
User 473299 Photo


Registered User
144 posts

It's not stable with the html on the form, sometimes when loading the empty form some fields are missing.
When I remove the html code (with code to fill some input fields) the form works ok, but I "need" the html.
User 187934 Photo


Senior Advisor
20,271 posts

Try adding the jQuery files to your host linking to those instead of Google's
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 473299 Photo


Registered User
144 posts

So placing them on my own server and refer to http://mysite.nl/js/jQuery-last.js?
User 473299 Photo


Registered User
144 posts

Same issue, half of the time fields are not loaded. If I remove the html they are loaded.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.