diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index c1bedad651cc73e25edbc8c364ffe6f706cd43ee..924ad0140d720ab181a5ccb62a6c55a18750d8a3 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -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"> diff --git a/include/class.forms.php b/include/class.forms.php index dd4d662397fef27a056f1caf0baef44e6645d111..ca4cf44a7a38e31eea60365ffc23139e68603275 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -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), )), );