You are viewing limited content. For full access, please sign in.

Question

Question

Slow Form Load

asked on March 5, 2014

 

I have a Form that is quite large and has 28 field rules. This Form takes 25 seconds to load.

 

When I remove the 28 field rules the form loads in 4-5 seconds.

 

I'm running the current version of Forms on a new server.

 

My only thought is would there be a performance improvement if I scrapped the field rules and could

somehow do this in the JavaScript?

 

Thanks

 

Daryl

 

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on March 5, 2014

I'd check to ensure that your field rules aren't overlapping, conflicting, or evaluating the same fields multiple times. With that many rules, it might be easier to use JavaScript and CSS to show or hide fields and it's pretty straightforward to do so.

 

For example, create a single line field and in its Advanced tab, give it the toggle class.

 

If you wanted to hide this field by default, you could insert this CSS rule on the CSS and JavaScript page:

.toggle {display:none;}

If you wanted to show this field if another field has a certain value, you could do that, too. Let's assume this other field has been given the otherField class.

$('otherField input').blur(function () { //when the user leaves the other field
    if ($('otherField input').val() === 'the value you want') //check its value, if it matches what we want
    {
        $('.toggle').show(); //show the hidden field
    }
    else $('.toggle').hide(); //otherwise, keep it hidden or hide it again
});

If you're new to JavaScript (and jQuery, the library used in my sample code), check out this page in the online help.

1 0
replied on March 5, 2014

I'd also recommend doing some performance profiling so that you can figure out what exactly is causing the slowness. Both Chrome and Firefox come with built-in tools that can help you with this. You can even take "before and after" recordings to see which method results in better performance.

0 0
replied on March 6, 2014

Thanks Eric. I've converted all my rules over to JScript with just a few modifications on your example.

 

the form now loads between 2 to 6 seconds.

 

 

0 0
replied on March 6, 2014

You're welcome!

0 0

Replies

replied on March 5, 2014

I'd also recommend doing some performance profiling so that you can figure out what exactly is causing the slowness. Both Chrome and Firefox come with built-in tools that can help you with this. You can even take "before and after" recordings to see which method results in better performance.

replied on March 5, 2014

Hi Daryl,

 

Do you mind sharing your business process in the post, so that we can look into it.

 

Thanks,

Abby

 

0 0
replied on March 13, 2014

Hi Daryl,

 

Forms 9.1.1 has improved page load performance with multiple fields rules. It's currently available in Support Site.

 

Best wishes,

Abby

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.