Hi
IS_EMPTY_OR(IS_DECIMAL_IN_RANGE()) works as expected:
- The prefill is blank.
- If no entry is made and the form is submitted, then None shows in the new row in the grid and null goes thru to the db.
- If an entry is made and deleted, then same as above.
- If an entry within range is made then that appears in grid and db as expected.
- This also works even if the range does not include 0, eg. min=9, max=99
- Setting default=x in Field() shows that value as the prefill.
On its own IS_DECIMAL_IN_RANGE() also works - as far as I'm concerned:
- The prefill is blank. *** But is this behaviour open to question? ***
- A blank is invalid on form submit.
- Setting default=x in Field() shows that value as the prefill.