Skip to content
Snippets Groups Projects
Commit 27921f29 authored by Jared Hancock's avatar Jared Hancock
Browse files

Add placeholder for typeahead lists

parent c20a500c
No related branches found
No related tags found
No related merge requests found
......@@ -930,7 +930,7 @@ class SelectionField extends FormField {
)),
'prompt' => new TextboxField(array(
'id'=>2, 'label'=>'Prompt', 'required'=>false, 'default'=>'',
'hint'=>'Text shown in the drop-down select before a value is selected',
'hint'=>'Leading text shown before a value is selected',
'configuration'=>array('size'=>40, 'length'=>40),
)),
);
......@@ -974,7 +974,8 @@ class SelectionWidget extends ChoicesWidget {
<span style="display:inline-block">
<input type="text" size="30" name="<?php echo $this->name; ?>"
id="<?php echo $this->name; ?>" value="<?php echo $name; ?>"
autocomplete="off" />
placeholder="<?php echo $config['prompt'];
?>" autocomplete="off" />
<input type="hidden" name="<?php echo $this->name;
?>_id" id="<?php echo $this->name; ?>_id" value="<?php echo $value; ?>"/>
<script type="text/javascript">
......
......@@ -670,7 +670,7 @@ class ChoiceField extends FormField {
)),
'prompt' => new TextboxField(array(
'id'=>2, 'label'=>'Prompt', 'required'=>false, 'default'=>'',
'hint'=>'Text shown in the drop-down select before a value is selected',
'hint'=>'Leading text shown before a value is selected',
'configuration'=>array('size'=>40, 'length'=>40),
)),
);
......@@ -871,7 +871,7 @@ class PriorityField extends ChoiceField {
return array(
'prompt' => new TextboxField(array(
'id'=>2, 'label'=>'Prompt', 'required'=>false, 'default'=>'',
'hint'=>'Text shown in the drop-down select before a value is selected',
'hint'=>'Leading text shown before a value is selected',
'configuration'=>array('size'=>40, 'length'=>40),
)),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment