Hi,

I would like to ask you If it is correct If I am using in integer field -A, select list and B, allowed values f.e. 0|0, 1|1 ....
A, Selection list is more comfortable, I don't allow to fill out some another number.
Is selection list valid for integer field ? One think is possibility use it, second things is recommendation.
B, Allowed values (label and value separate with "|").
Is not better use only predefined 0, 1, 2 .. ?

Thank you for answer.

Comments

yched’s picture

Status: Active » Fixed

Er, you pick the widget that fits your needs best :-)
A select list does let you restrict the possible choices, so if that's what you need, go for it.

Allowed value : the | syntax is only useful if you want to provide 'aliases' (i.e the field stores 0 but displays 'zero')
If you don't use aliases, you can declare 0, 1, 2 as allowed, without |'s

sentinelcz’s picture

Thank you yched for clear confirmation.
Lets Have a nice time.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.