Yes Brenden, I have seen the article several times and it describes condition based on true or false.
An example I saw was the following.
form tablequeryquery data sourcecustom tabledrop down list
Correct Answer
Dmitry Bastron
answered on May 29, 2020 23:27
Tom, this can be done like this:
First form field, let's call it Frequency, is configured as:
Data type: Text
Form control: Drop-down list
Data source: list of options
50Hz
60Hz
Has depending fields: true
Second form field, GeneratorModel is configured as:
Data type: Text
Form control: Drop-down list
Data source: SQL Query (will be below)
Depends on another field: true
Query:
select GeneratorCode, --this is drop-down item value
GeneratorName --this is drop-down item display name
from customtable_Generators
where GeneratorFrequency = '{% Fields["Frequency"].Value #%}'
My SQL query is similar but I am getting and error
Select ItemID,Spaces from custom_table where DateTimeSpaces='{% Fields["DateTime"].Value #%}'
I get an error Where DateTimeSpaces="1" Caused exception:Conversion failed when converting date and/or time from character string.
So I am trying to display the number of spaces that belong to the corresponding DateTime field on my form which is has a date time format.
How would I correct this error or the SQL?