Hi,
So you can show the text
field only the users select an option and mark required
for the text field. Is that easier?
Here is the sample code
'fields' => [
[
'name' => 'Select',
'id' => $prefix . 'select',
'type' => 'select',
'options' => [
'java' => 'Java',
'javascript' => 'JavaScript',
'php' => 'PHP',
'csharp' => 'C#',
],
'placeholder' => 'Select an Item',
],
[
'name' => 'Text',
'id' => $prefix . 'text',
'type' => 'text',
'visible' => [ 'select', '!=', '' ],
'required' => true
]
],