web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Adding Placeholders

(0) ShareShare
ReportReport
Posted on by 1,299

Hi,

I am looking to add placeholders for a text fields in a form, and want to know how can it be done if its possible.

(Placeholder is the one where the text field has a self explanatory text inside it describing about the text field, when we start entering text inside the filed they disappear. example screenshot below.)

placeholder.jpg

Thanks in advance

*This post is locked for comments

I have the same question (0)
  • Davyjones Profile Picture
    1,299 on at
    RE: Adding Placeholders

    Hi Arteo,

    Thanks for your response, but can this be done in CRM too? My doubts are how can we take the ID of the text boxes. It would be very helpful if there is any examples of implementation or step by step instruction on achieving the same.

    Thanks for your time

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Adding Placeholders

    Hi Davyjones,

    I encounter this problem too and adding placeholder using javascript helps me.

    Here is a sample; I used this with WordPress

    /*******js**********/

    var placeholders = {

       'f_68f399afd2f9e41197ef005056bb0018' : 'First Name',

       'f_7462e303d3f9e41197ef005056bb0018' : 'Last Name',

       'f_94b67298d2f9e41197ef005056bb0018' : 'Email' ,

       'f_5e1ff040d3f9e41197ef005056bb0018' : 'Phone',

       'f_914cbb21b28ce5118358005056bb0024' : 'Postcode'

    };

    $('input:text').each(

       function(i,el) {

           if (!el.value || el.value == '') {

               el.placeholder = placeholders[el.id];

           }

       });

    /******************/

    screencast.com/.../VLJTHx1Pw

    Hope it helps.

  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at
    RE: Adding Placeholders

    Hi..

    As above all mentioned it is not possible with CRM native filed or Form attributes with supported way, except if you use HTML web resource for your attributes..

    You can create HTML web resource with the required attributes on it - like Firstname, lastname textbox, and apply whatever cosmetic changes you want in HTML web resource.. and place this web resource on form.

    Then you need to hide existing attribute from CRM form which you used in HTML web resource.

    and in from HTML web resource you can set CRM attribute values.

    Hope this will help..

  • Verified answer
    Hamzeh Zawahreh Profile Picture
    3,674 on at
    RE: Adding Placeholders

    dear Davyjones,

    there is nothing called placeholder in crm, but you can use unsupported customization to place html label beside the field or below ..etc....

    you can use html web resource that you can insert label in specific design to tell the user something you want, like this great article below :

    www.infinite-x.net/.../adding-form-labels-using-html-web-resources

    or using tooltip:

    http://extremecrm.net/2013/08/14/custom-dynamics-crm-2011-tooltips/

    or :

    https://community.dynamics.com/crm/b/adopt2win/archive/2012/09/14/modifying-tooltips-to-microsoft-dynamics-crm-2011-fields

  • Mahendar Pal Profile Picture
    45,095 on at
    RE: Adding Placeholders

    Using tool tip could be a good workaround for this.

  • Verified answer
    mscrmba Profile Picture
    on at
    RE: Adding Placeholders

    You can create a custom tooltip that when the customer hovers over the field it gives details (above and beyond the field's label).  (This functionality is available out of the box in 2013/2015 but in 2011 it requires some Jscript.)

    Have a look at this great blog from Gus:

    www.zero2ten.com/.../modifying-microsoft-dynamics-crm-2011-fields-tooltips

    Not exactly what you were asking for - but it performs a very similar function; and when your system is upgraded you won't need to retrain the staff.

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at
    RE: Adding Placeholders

    Hi Davy,

    As Guido's pointed correctly, it's not possible.

    Refer this link. It provides the detailed explanation.

    msdynamicscrmblog.wordpress.com/.../image-field-in-dynamics-crm-2013

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans