Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Form fields stop updating after several 'Save' actions

Questions related to using nuBuilder Forte.
Post Reply
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Form fields stop updating after several 'Save' actions

Unread post by Fike »

When updating a field on any given form and saving, after 3 or 4 times the form stops updating the field.

It can be solved by increasing 'max_input_vars' value on php.ini file (on the server configuration). I increased this value from 2000 to 200000 and now it is working fine.

However, I tracked the cause and I believe it is due to the following line in nuajax.js file :

line 68

Code: Select all

    last.hash	 		= parent.nuHashFromEditForm();
I realized that when I added the following console.log command at the beginning of the nuAjax function definition in the same file:

Code: Select all

function nuAjax(w,successCallback,errorCallback){
    console.log({nuSTATE : w});


When checking the browser's console I realized that this object (nuSTATE) had many nested nuSTATE.hash.hash.hash.hash objects/variables/values after updating a field and saving the form for several times.

This is because each time the form is saved, a new .hash object is inserted to the last window object.

I hope this helps to find a way to prevent nesting this hash objects for many times.

Kind regrads
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Form fields stop updating after several 'Save' actions

Unread post by admin »

Fike,

OK, I think that has been fixed.

Please test the latest on Github.

Steven.
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Re: Form fields stop updating after several 'Save' actions

Unread post by Fike »

Yes...it's working fine now. Thank's a lot !
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Form fields stop updating after several 'Save' actions

Unread post by admin »

.
Post Reply