Skip to main content
edited body
Source Link
Brad Bell
  • 67.6k
  • 6
  • 75
  • 145

Is there a way to differentiate the number field value empty and 0?

I would like to display this field only when there's a value in the field even though the value is 0.

But when I input 0 into the field, it seems that craftCraft thinks the value is empty... so doesn't still display the field.

Thanks.

Is there a way to differentiate the number field value empty and 0?

I would like to display this field only when there's a value in the field even though the value is 0.

But when I input 0 into the field, it seems that craft thinks the value is empty... so doesn't still display the field.

Thanks.

Is there a way to differentiate the number field value empty and 0?

I would like to display this field only when there's a value in the field even though the value is 0.

But when I input 0 into the field, it seems that Craft thinks the value is empty... so doesn't still display the field.

Thanks.

Source Link

Number field when empty and value=0

Is there a way to differentiate the number field value empty and 0?

I would like to display this field only when there's a value in the field even though the value is 0.

But when I input 0 into the field, it seems that craft thinks the value is empty... so doesn't still display the field.

Thanks.