Good Day
I need to know, how do I convert a Static field in to a Dropdown?
I want to pre-Populate it with data
Please Assist
Drop-Down
Moderators: alexandrleonenko, Milton
Re: Drop-Down
Hello
Please tell us which pages you want to add it.
Please tell us which pages you want to add it.
Re: Drop-Down
Hi There
It will need to affect all the pages..
But the Primary would be Patient Registration, followed by Doctors.
The idea is to swap the fields around, so that the Patient can input the zip code First, then basesed on the zip it will populate the city, then the state/province
But on the viewing page it will need to be in order, as it currently is.
It will need to affect all the pages..
But the Primary would be Patient Registration, followed by Doctors.
The idea is to swap the fields around, so that the Patient can input the zip code First, then basesed on the zip it will populate the city, then the state/province
But on the viewing page it will need to be in order, as it currently is.
Re: Drop-Down
Hello
If I understand correctly, when filling zip_code you want to select the city and state/province. It is not necessary to do a drop-down list of towns. You need to make the ajax-request when removing focus from the field zip_code, which will do a search of the city and state/province.
If I understand you correctly, I will describe what must be done.
If I understand correctly, when filling zip_code you want to select the city and state/province. It is not necessary to do a drop-down list of towns. You need to make the ajax-request when removing focus from the field zip_code, which will do a search of the city and state/province.
If I understand you correctly, I will describe what must be done.
Re: Drop-Down
Hi There
That is correct.
Thank you
That is correct.
Thank you
Re: Drop-Down
Hello
For example, I want to correct the edit and the add pages of patients.
1) For this, I need to edit the file Patients.class.php (include/classes directory). In __construct() method finds the fields "Zip Code" (variables $this->arrAddModeFields and $this->arrEditModeFields) and to set the parameters of the field b_zipcode javascript_event (in this parameter specifies the event and the function that will be called when the event is triggered, for example - 'javascript_event'=>'onblur="yourFunction(this.value)")
2) js/main.js file add function yourFunction() that will do all the work. Do the ajax-request to the server and replacing html. For example, you can see function appChangeCountry() in the same file.
3) You must create a script that will take the ajax-request from your function yourFunction(), and send it in response to json or xml format. All files that work with ajax are in directory ajax/
For example, I want to correct the edit and the add pages of patients.
1) For this, I need to edit the file Patients.class.php (include/classes directory). In __construct() method finds the fields "Zip Code" (variables $this->arrAddModeFields and $this->arrEditModeFields) and to set the parameters of the field b_zipcode javascript_event (in this parameter specifies the event and the function that will be called when the event is triggered, for example - 'javascript_event'=>'onblur="yourFunction(this.value)")
2) js/main.js file add function yourFunction() that will do all the work. Do the ajax-request to the server and replacing html. For example, you can see function appChangeCountry() in the same file.
3) You must create a script that will take the ajax-request from your function yourFunction(), and send it in response to json or xml format. All files that work with ajax are in directory ajax/