Dear Support,
I noted that clear/reset not clears the Dropdowns var informations if I had searched before.
I can clear single entrys from the dropdown, but if I will clear it compleat (in case of a search mask) the selected dropdowns will be empty in the on load view, but not cleared in submit view. Is is posible to change the behavior for cleaned dropdowns?
Best regards
Collie-IT
I noted that clear/reset not clears the Dropdowns var informations if I had searched before.
I can clear single entrys from the dropdown, but if I will clear it compleat (in case of a search mask) the selected dropdowns will be empty in the on load view, but not cleared in submit view. Is is posible to change the behavior for cleaned dropdowns?
Best regards
Collie-IT
I did the following test, used a multi selection form, selected few entries, cleared them with a "Clear/Reset" button, then submit the form, the dropdown data is empty!
How does this work for you ?
How does this work for you ?
[div wfd-id="67"]The dropdown will beshown clear, but in the submit action the $_Session information overwrites the changed informations.[/div]
no, for me the form data array in the debug shows the dropdown value as empty, what do you mean by "session" information ? please post a screenshot!
[div wfd-id="276"]The $_SESSION variable is a standard php variable. [div wfd-id="275"][div wfd-id="274"]The problem is that the dropdown values get regenerated only if you remove all. See following screenshots.[div wfd-id="273"][div wfd-id="282"]
[div wfd-id="293"][div wfd-id="291"]
[div wfd-id="290"][div wfd-id="295"]
[div wfd-id="297"]
If I do clear the $_SESSION and the $this->data variable with something (I recomend do both) like this:
Then it works right.




If I do clear the $_SESSION and the $this->data variable with something (I recomend do both) like this:
if(isset($this->data)){
foreach($this->data as $dadkey => $dad){
unset($this->data[$dadkey]);
unset($_SESSION["gcore"]["Search"]["_data"]["form"][$dadkey]);
}
}
Then it works right.
You need to login to be able to post a reply.