In my custom entity, I have a field such as:
PHP:
The form is something like this:
HTML:
Of course, there are other fields as well, but if nothing in selected for "Foo" and submit button is pressed, the form...
Read more
Читать далее...
PHP:
'foo' => ['type' => self::UINT, 'required' => true]
The form is something like this:
HTML:
Код:
<xf:selectrow label="Foo" value="{$entity.foo}" name="foo">
<xf:option value="">Select One</xf:option>
<option value="1">Abc</option>
<option value="2">Ghi</option>
<option value="3">Def</option>
</xf:selectrow>
Of course, there are other fields as well, but if nothing in selected for "Foo" and submit button is pressed, the form...
Read more
Читать далее...