I have a databasejoin showing a list of different status like 10, 20, 30, 40, 50 and up to 100 (corresponds to ordered, cancelled, packinglist and so on)
Databasejoin is rendered as a dropdown. When it's filled (in a new registration) the status are automaticly set to 40. And i cant have this so i have tried to set default status to 10 but default are not set. It always shows 40.
I've set the Eval default to No
Default value: 10
or
Eval to Yes
Default value: Return 10;
Nothing is working.
If i do a where statement like "where statusnr=10" i will get only this status and then its working. But in my form i have evaluations that will change this status. And if any of these elements that changes the status are clicked, it will not work cause now the databasejoin dropdown consists of only one value - the 10 status.
Am i doing something wrong, or is it the default value setting not working in fabrik?
Databasejoin is rendered as a dropdown. When it's filled (in a new registration) the status are automaticly set to 40. And i cant have this so i have tried to set default status to 10 but default are not set. It always shows 40.
I've set the Eval default to No
Default value: 10
or
Eval to Yes
Default value: Return 10;
Nothing is working.
If i do a where statement like "where statusnr=10" i will get only this status and then its working. But in my form i have evaluations that will change this status. And if any of these elements that changes the status are clicked, it will not work cause now the databasejoin dropdown consists of only one value - the 10 status.
Am i doing something wrong, or is it the default value setting not working in fabrik?