Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Entity Form - Placeholder for textboxes

Posted on by 160

Hi experts,

I want to add placeholders for textboxes on my Entity form. Is there a way were we can have this implemented through the Entity form metadata or anything else? 

Below is the image how it should look like.

Let me know if you need any more clarification.

Regards,
Sagar

*This post is locked for comments

  • AsifSk Profile Picture
    AsifSk 8 on at
    Entity Form - Placeholder for textboxes
    Can any one share the JS code here. It will helps me out.
     
    Thanks in advance.
  • learnincommunity Profile Picture
    learnincommunity 50 on at
    RE: Entity Form - Placeholder for textboxes

    Can you please share the Jscript you used. I am getting some errors in my Jscript. Thanks

  • Verified answer
    SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Entity Form - Placeholder for textboxes

    I have done using some javascript on CRM forms. It works well.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Entity Form - Placeholder for textboxes

    You can do this with jquery:

    $(document).ready(function () {

     // Add Placeholders for Tax Information

     $("#new_ein").attr("placeholder", "Enter your Tax Id (with no dashes)" );

     $("#new_ssn").attr("placeholder", "Enter your Social Security Number (with no dashes)" );

    });

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Entity Form - Placeholder for textboxes

    Hi Sagar,

    You could add the text using the Attribute Metadata - Add Description property but this would place the text to the following location (and *not* inside the field as watermark)-

    1. Above the field

    2. Below the field

    3. Above the Lable

    community.adxstudio.com/.../9f718f93-2b89-485e-9062-d561435686a7

    community.adxstudio.com/.../entity-form-metadata

    If you are looking for the exact look & feel then you need to write some JavaScript to achieve that (as suggested by Alex above).

    Hope this helps.

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Entity Form - Placeholder for textboxes

    Hi Ravi,

    This is regarding the placeholder text not the value added in the text box from the CRM.

    contactform7.com/setting-placeholder-text

    Regards

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Entity Form - Placeholder for textboxes

    Hi Sagar,

    I am not exactly sure what you are looking for as this comes by default if you have a multi line textbox in CRM. Check the below layout of Entity Form & CRM Form.

    Entity Form

    Entity_5F00_Multiline.png

    CRM FORM

    Entity_5F00_Multiline.png

    Hope this helps

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Entity Form - Placeholder for textboxes

    Hi,

     I think the best you can do (if you want it to work exactly like that) is to create an html web resource. Have a text box there, add some javascript.. then, in the on-load, initialize that web resource from the field value. Once the text in that text box is updated, push it back to the underlying Dynamics field (through javascript again)

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Entity Form - Placeholder for textboxes

    Hi Tino,

    Thanks for your response. 

    Yes, I have tried that but that is not what I am after.

    Having a placeholder on the textboxes will be more informative as users won't be aware of the hover feature and it is not very user friendly.

    Thanks.

  • Tino Rabe Profile Picture
    Tino Rabe 650 on at
    RE: Entity Form - Placeholder for textboxes

    Hi Sagar,

    have you checked the tooltip functionality?

    This is not exactly meeting your requirements as tooltips are only exposed when the user hovers over the field, but it is a supported functionality to give some more info to the Portal user.

    Regards,

    Tino

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans