slider not storing or recognizing NULL correctly upon clear

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.
 
ok I think I have got the element storing null and showing '' when the clear button is pressed. Just running the js compression build script now and will have the changes in github shortly
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top