Functionality of submit button issue

@brady.miller
Viewing reports page of Unique Seen Patients provide a perplexed behaviour. Steps followed are given below.

  1. Click Reports->Insurance->unique Sp.
  2. On clicking submit, displays the list.
  3. On clicking labels, prompts to download the txt file. But again on changing date and clicking on submit,it prompts to save file instead of listing the content.

Thanks,
ViSolve

Hi @visolveemr ,

As I recall, I noted that behavior on some other reports. I think the fix would be here:

With something like:

<a href='#' class='btn btn-default btn-save' onclick='$("#form_refresh").attr("value","true"); $("#form_labels").attr("value","false"); $("#theform").submit();'>

(basically setting form_labels to false or else it keeps getting carried over in the form variable)

-brady

@brady.miller
Thanks for you inputs. We did check with the code you shared but that did not work as expected.
We just tweeked the code a bit and it works good.
Kindly check.
Here is the updated code for your reference.
<a href='#' class='btn btn-default btn-save' onclick='$("#form_refresh").attr("value","true");$("#form_labels").val(""); $("#theform").submit();'>

Thanks,
ViSolve

Hi @visolveemr ,
Just brought this fix into the codebase.
thanks!
-brady

@brady.miller

Thanks brady

Thanks,
ViSolve