How to display a Placeholder Text with a PromptFieldValue
we are having an UI related issue. I've opened a "How-To" Service request at GCS ( SR-129700) but received no answer. Maybe someone here can help me out.
We are displaying a list of options via Dropdown (PromptFieldValue) for a single value text property. The table type for this property is set to Field Value. This field value is referenced at many other rules, so changing it to local list is not really an option.
Now the customer wants to have a placeholder text for those dropdown selections. We haven't found a way / rule that allows to display a placeholder text and have the selectable options determined by the available field values of the property.
Can you please explain this in more detail ? Why do you need a placeholder ? For example, are these field values being translated so the placeholder is until you know what language will be used ? /Eric
Thank you for the quick reply. Here are some more details:
The selected value of the dropdown influences the options displayed in subsequent fields. (That's why I made the other options unreadable).
The field values are localized (and the list of field values is going to grow).
When the user enters the screen, the current control (PromptFieldValue) displays the first entry (sorted alphabetically) while the property on the clipboard has no value. The UI suggests that the selection is already made. The customer now wants to have the subsequent decisions invisible until the choice for "Aktionsart" has been made and want to have an unselectable placeholder text like "Select..." ("Bitte Auswählen...") in the control upon entering the screen.
We haven't found any control that allows us to show a placeholder text and display the field value options in a dropdown.
Conclusion: The field values are translated, but we want the placeholder to not confuse the user to think the selection has been made upon entering the screen. He might want to choose that option and think the work is done already.
The PromptFieldValue control doesn't have a place holder text option. In Pega 7 there is a new Drop Down (pxDropDown) control that does support this. There is however the DynamicSelect control available in 6.3 Sp1 which does have a pace holder option (default caption)
This doesn't directly support field values as far as I can tell but I was able to get it working by defining a Report Definition on Rule-Obj-FieldValue to retrieve the relevant field values, and then use this Report as the source for the dynamic select.
thank you for your help. It would have worked, but the Field Values exist in two different Major Versions of our RuleSet, so we would have to define more conditions. This wouldn't have been very maintainable, as some of those Field Values might be withdrawn in upcoming minor or patch versions.
We have found a solution thoug, and I will present it here:
We wrote a Wrapper Activity for @baseclass.GetListOfFieldValues with 3 Steps.