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

Add help icon in date field

Hello community, I am working with a portal in power apps. 

I'd like to put a help icon next to the Due Date field so the user knows the instructions for setting a date. In other words, once the user clicks on the help icon, a message box will be shown that says: Please enter a date greater than two days from the current one.

MartinVargas_0-1649365450675.png

 

I need something like this:

MartinVargas_0-1649367031849.png

 

 

 

Can someone help me here? 

I would appreciate it guys

8 REPLIES 8
ragavanrajan
Super User
Super User

Hi @MartinVargas 

 

You can try the following to enable the Tooltip for your field that will suffice your need. Below are the steps for you. 

 

1. Go to https://make.powerapps.com/ - choose your environment 

2. Under Data > Tables > choose the table 

3. Select "Forms" Tab > Choose your main form > Edit in new Tab 

4. You can see an option called "Switch to classic" 

5. Double click the field where you need tooltip/help text 

6. Under "Details" Tab > Click Edit > under "Description" > add your tooltip/help text 

 

ragavanrajan_0-1649368865406.png

7. Hit Save and close and click ok 

8. Remember to publish your form in classic mode. 

Once published > Click publish again in the design mode and close the form design 

 

------------
In Portal studio

1. Pres sync configuration and browse the website. And press "Ctrl+F5" 

 

Output: 

ragavanrajan_1-1649369307054.png

 

 

If you need customisation like what you described then it requires bit of customisation using jquery and CSS

 


Hope it helps. 
------------

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

 

MartinVargas
Post Patron
Post Patron

Hello @ragavanrajan thank you very much. Implementing what it mentions to me, it happens that it does not show me the message that I declared.

 

MartinVargas_0-1649371496174.png

These were the properties:

 

MartinVargas_1-1649371570056.png

 

Hi @MartinVargas 

My apologies. Once you add the description. 

 

In Portal management: 

1. Under content > Basic Forms> Select your form 

2. Form options > Additional settings > Check "Tooltip Enabled" 

3. Hit Save and close 

 

------------
In Portal studio

1. Pres sync configuration and browse the website. And press "Ctrl+F5" 

 

Hope it helps. 
------------

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

MartinVargas
Post Patron
Post Patron

Hi @ragavanrajan, as I can add an icon right next to Delivery Date, it happens that I want to show one like this:

MartinVargas_0-1649439609475.png


So that at the time of clicking on this icon it shows the message I just implemented (Please enter a date greater than two days from the current one).

NatGeo
Resolver I
Resolver I

Hi @MartinVargas,

You have to do the following:

1. Go to https://make.powerapps.com/ - choose your environment 

2. Under Data > Tables > choose the table 

3. Choose Form you use

4. Select field

5. Locate to label

NatGeo_0-1649460567841.png

 

 

6. add the following after the label

<button type="button" class="lbx-lnk  lbx-modal glyphicon glyphicon-info-sign" tabindex="0" onclick="YOUR JS Script" style="cursor: pointer; background: none!important; border: none; padding-left: 2!important; color: #26374a;"></button>

7. Save

8. Publish

9. Go to portal

10. clear cache

11. you will see your icon

 

as for JS Script - it's a simple one that runs on click

 

Hoping it helps.

NatGeo

 

PS

I would not suggest to use descriptions of fields as tooltips, with functionality you are going to implement it's not worth it. You are not going to use it, I believe

 

Fubar
Solution Sage
Solution Sage

There are different ways to achieve it.  Personally I prefer to only use the hover text with the description as per Raga's earlier posts.

 

But, you can do something like the following in JQuery, where "webfileicon" is the name of a Web File that you have added the icon image to and "showyourmessage()" a JS function that your write to display/unhide your message.

 

 

 

// inside a document.onload

$('#thefieldname_label').append('<a id="someid1" onclick="showyourmessage();"style="margin-left: 5px;"><img id="someid2" src="/webfileicon" width="15" height="15";></a>');

 

 

 

Hi @NatGeo your proposal helped me a lot. When clicking on this icon, how can I show a message box, similar to this:

MartinVargas_0-1649696441110.png

 

 

Hi @MartinVargas 

 

If you are happy with the @NatGeo solution then please apply the border CSS for your message and appear like a message box in your custom CSS. 

 

I think applying CSS would be the simple solution.  

 

Alternatively, you can display the message box. Example below 

 

https://www.w3schools.com/howto/howto_js_alert.asp 

 

Hope it helps. 
------------

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

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 (1,480)