Hello community, I am working with a portal in power apps.
I would like to put a legend, or a message in the Delivery Date field so that the user knows the instructions to establish a date. Because I want to show a legend that says: Please enter a date greater than two days from the current one.
Can someone help me here?
I would appreciate it guys
It is not there out-of-the-box, but you can set it via JavaScript (JQuery) by setting the "placeholder" attribute of the field
$(document).ready(function () {
$("#field_name").attr("placeholder", "the palceholder text to display" );
});
Hi @Fubar your idea is good. However, it does not work in those fields that are date type.
You can set placeholder on a date field, but you probably are not using the correct fieldname - Date fields are more complex than normal fields and comprise several sets of tags (with slightly different Id's)
Try adding _datepicker_description to the end of the fieldname
@Fubar, effectively using the following script I was able to show the placeholder in this type of data.
$(document).ready(function () {
$("#crb57_fechadeentrega_datepicker_description").attr("placeholder", "Please enter a date greater than two days from the current one" );
});