skyrun
Active Member
pressing 'clear' (or none) for slider clears out the number correctly. and it's stored as a BLANK (not a NULL) which may or may not be ok.
however when you open a record that has a BLANK in it that has been cleared, it shows as NaN on the slider. Then if you save, it saves 'NaN' in the field.
(note: NaN (2nd time) or BLANK (first time) is saved if element is type 'text' on db, which is what fabrik creates it as).
i believe it would be better to store a NULL vs. a blank when cleared (that way if the db is storing an int for example, it will still work). but either way, the plugin needs to be fixed to recognize a cleared value.
however when you open a record that has a BLANK in it that has been cleared, it shows as NaN on the slider. Then if you save, it saves 'NaN' in the field.
(note: NaN (2nd time) or BLANK (first time) is saved if element is type 'text' on db, which is what fabrik creates it as).
i believe it would be better to store a NULL vs. a blank when cleared (that way if the db is storing an int for example, it will still work). but either way, the plugin needs to be fixed to recognize a cleared value.