cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MartinVargas
Post Patron
Post Patron

Add Legend in a field

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.

MartinVargas_0-1649279814771.png

 

 

Can someone help me here? 

I would appreciate it guys

4 REPLIES 4
Fubar
Solution Sage
Solution Sage

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.

Fubar
Solution Sage
Solution Sage

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" );
});

 

 

 

Helpful resources

Announcements
Carousel Community Blog

Check out the Community Blog

Read all about the most recent blogs in the community!

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Carousel News & Announcements

What's New in the Community?

Check out the latest News & Events in the community!

Users online (2,781)