Skip to content

A form that lets users apply custom filters to search through a table #536

Answered by lovasoa
borisfindrik asked this question in Q&A
Discussion options

You must be logged in to vote

Hello and welcome to SQLPage !

It looks like you have a problem in your form. You should have 'DateTime' as name if you want to be able to be able to use :DateTime in the next page. You can have a variable name that is different from the displayed label by using the label property. You can replace your form queries with

select 
    'Date and Time' as label,
    'DateTime' as name;
select
    'Temperature' as label, 
    'Temp' as name;

Full working value filtering form example

select 'form' as component, 
       'Search' as validate, -- Creates a submit button with the text "Search"
       'GET' as method;      -- Form data will be sent as URL parameters

select 
    'Date' as label,     …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@borisfindrik
Comment options

@lovasoa
Comment options

@borisfindrik
Comment options

@lovasoa
Comment options

Answer selected by borisfindrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
form Building forms in SQL; questions about the form component
2 participants