I tried loading using SetResponse('formFieldValueSilent':'MY_FIELD':'MY_ VALUE'); but this is not working.
The hasChanged variable is still set to true even when the console shows that the fields have silent set to true.
**Note, the form has drop down fields is this causing any issue.
image.png
Announcement
Collapse
No announcement yet.
hasChanged in Editgrid for Date Picker
Collapse
X
-
Both of these issues will be addressed in the next update (details are in this post already).
Leave a comment:
-
Just to sumarize this. There are 2 issues- Form Initialization Issue
- When a form is loaded using a program with keep data, the hasChanged property is set to true immediately.
- Expected behavior: The form should have the ability to reset hasChanged to false after loading, and only changes made after that should trigger hasChanged = true.
- Date Picker Issue
- Clicking on a date picker sets hasChanged to true even if the date value is not actually changed.
- Expected behavior: hasChanged should only be set to true when the date value is modified.
Leave a comment:
- Form Initialization Issue
-
If using the Form Helper there will be a new procedure named "SetValueSilent".
Leave a comment:
-
This will be handled in the next update. There will be a new property that may be passed to SetResponse named "formFieldValueSilent". This update the value of the form field in a manner that the form will not recognize this field as being changed.
Code:SetResponse('formFieldValueSilent':'MY_FIELD':'MY_VALUE');
Leave a comment:
-
We will setup a similar scenario on our end and then determine the best path forward.
Leave a comment:
-
I applied this, and hasChanged did get set to false, but it did not change to true after actual changes were made.
Leave a comment:
-
For now, can you try the following approach:- Add a new Event Listener named "resetFormHasChanged" or similar
- Add an "Execute Script" to this listener
Add a line of code to your form helper program:Code:setTimeout(function(){ setAppVar('YOUR_APP_VARIABLE':false); },500); success();
Code:SetResponse('fireEvent':'resetFormHasChanged');
Leave a comment:
-
Give an option to reset the hasChanged Property. Just setting the appVariable to false does not reset it.
So, when we load the form using program for 1st time, we will rest it and any changes made after that would trigger the hasChanged property to set to true
Leave a comment:
-
Not sure how to best handle this one. If we change the process so that setting a value of a form field does not trigger the hasChanged this will cause problems for those who rely on the fact that the field value has changed.
When using "data" linkage or reloading the form from the data source this resets the process because you are loading the entire record.
Leave a comment:
-
We are calling a Program which sets field values using SetResponse('formFieldValue'
On Success, we show Form with Keep Data Option
We do this because, same field on the form may get data from different files based on certain conditions, handling that in a data source query makes the query too complex.
Same thing if we try using appVariable which is linked to General->Data in link to appvariable of the Form, where we set the appVariable to get all the data from the grid and then show the form using keep data. in this scenario the hasChanged property is not set to true
Leave a comment:
-
So you are programmatically changing form field values? Did this work before in that it did not set on the hasChanged property? I would think this is doing the correct thing by setting hasChanged to true when if are changing the values.
Leave a comment:
-
Will it also address the issue where forms hasChanged is set to true when form show up. Here a program is called which sets form field values and then form is shown with keep data option.
Note: form has drop downs
Leave a comment:
-
We have replicated the issue with cell editing and date fields and this will be fixed for the next update.
Leave a comment:
-
What we are trying to do is, we have a form and an edit grid which opens together. Changes made to the form and edit grid needs to be saved at once, hence we have an app level button which we need to disable when nothing is changed and should be enabled as soon as something changes either on form or on edit grid.
The problem we are facing is,
Forms hasChanged is already set to true as soon as it gets loaded. we have use program to load the form with keep data on show.
Editgrids hasChanged sets to true if we just click the date picker even if we do not change it.
??image.png?
Leave a comment:

Leave a comment: