Skip to main content
Topic: Custom Search Form (Read 2527 times) previous topic - next topic

Custom Search Form

How can a custom search form be created?

  An example might be:

  Supply a value for an employee lastname.
  Press the 'Submit' or 'OK' button.
  A list of matching employee's (with the same lastname) are listed.

 


Re: Custom Search Form

Reply #1
@radminer‍ do the following to add a custom search filter component.
1. Click on Page Design.
2. Select the page you want to add the search component.
3. Drag the search field from the Page Filter Component to the area numbered 4 in the image below, configure and enjoy.

Note: Search field Page Filter Components will only work on List Pages.

Re: Custom Search Form

Reply #2
Thankyou.

Is it also possible to initially prevent the employee list from showing, and then display matching employee results *after* the lastname to search on is submitted?

@radminer‍ do the following to add a custom search filter component.
1. Click on Page Design.
2. Select the page you want to add the search component.
3. Drag the search field from the Page Filter Component to the area numbered 4 in the image below, configure and enjoy.

Note: Search field Page Filter Components will only work on List Pages.


Re: Custom Search Form

Reply #4
OK.

Is it possible then to create a custom search page - not associated with any database - with (as an example) a lastname field.
After pressing the Submit/OK button, the system is then directed to the employee list page which accepts the lastname value (passed in from the custom search page) and displays the matching employees.

[quote author=radminer link=msg=1541 date=1571759798]
Thankyou.

Is it also possible to initially prevent the employee list from showing, and then display matching employee results *after* the lastname to search on is submitted?

@radminer‍ do the following to add a custom search filter component.
1. Click on Page Design.
2. Select the page you want to add the search component.
3. Drag the search field from the Page Filter Component to the area numbered 4 in the image below, configure and enjoy.

Note: Search field Page Filter Components will only work on List Pages.
[/quote]

Re: Custom Search Form

Reply #5
Being able to create multi-edit screens for the same database table would be an excellent feature addition - provided it cannot
be done currently with PHPRAD,

OK.

Is it possible then to create a custom search page - not associated with any database - with (as an example) a lastname field.
After pressing the Submit/OK button, the system is then directed to the employee list page which accepts the lastname value (passed in from the custom search page) and displays the matching employees.

[quote author
@radminer‍ No, it is currently not possible.
=radminer link=msg=1541 date=1571759798]
Thankyou.

Is it also possible to initially prevent the employee list from showing, and then display matching employee results *after* the lastname to search on is submitted?

@radminer‍ do the following to add a custom search filter component.
1. Click on Page Design.
2. Select the page you want to add the search component.
3. Drag the search field from the Page Filter Component to the area numbered 4 in the image below, configure and enjoy.

Note: Search field Page Filter Components will only work on List Pages.
[/quote]


Re: Custom Search Form

Reply #7
Thankyou. 

That application feature I'm aware of; but would all the edit pages (for a mult-page table edit) be disabled prior to the table
record being initially added? Has anyone tried this successfully with PHPRad?

@radminer,‍ follow steps 1 and 2 in the image below to add extra pages like Add, Edit, List and View Page for a given table.

For more info:👇
PHPRad Documentation
PHPRad API Documentation

 

Re: Custom Search Form

Reply #9
As an example of a multi-page edit form;

A patient table that has 80 fields - the first 20 fields are for demographics, the next 60 fields are for patient historical data:

When initially adding patient data, the patient demographics data page should proceed the historical data page - it should
not be possible to entering patient  historical data prior to entering patient demographics data first.

Does that make sense?


Re: Custom Search Form

Reply #10
 
As an example of a multi-page edit form;

A patient table that has 80 fields - the first 20 fields are for demographics, the next 60 fields are for patient historical data:

When initially adding patient data, the patient demographics data page should proceed the historical data page - it should
not be possible to enter (record update) patient historical data prior to entering (record insert) patient demographics data first.

Does that make sense?

@radminer‍ please make your question clearer.