Placeholder text in field editor/table

Is it possible to put custom placeholder text in a field editor field or a table? I messed around with CSS but couldn’t figure it out.

A few ideas: 

1. Default value for the field in salesforce setup. 
2. Add a condition to the model for the field you want  - for a new record this will prepopulate the value from the condition. 
This text will be a default value,  rather than a placeholder,  but it may be sufficient. 

Thanks for the suggestions.

I’m not really looking for a default value. More of an inline help like the placeholder text on the search boxes on tables. I found some javascript to add that, but would need an id field for the tag and did not see where I could add one. Do you know of any way to add placeholder text?

Thanks for the distraction!

<skuidpage unsavedchangeswarning="yes" showsidebar="true" showheader="true" tabtooverride="Account">   <models>
      <model id="Account" limit="1" query="true" createrowifnonefound="false" sobject="Account">
            <field id="Name"/>
            <field id="CreatedDate"/>
            <field id="BillingCity"/>
            <field id="BillingCountry"/>
            <field id="BillingState"/>
            <field id="BillingStreet"/>
            <field id="BillingPostalCode"/>
            <condition type="param" enclosevalueinquotes="true" operator="=" field="Id" value="id"/>
      <pagetitle model="Account">
            <action type="delete"/>
            <action type="clone"/>
            <action type="share"/>
            <action type="savecancel" window="self"/>
      <basicfieldeditor showsavecancel="false" showheader="true" model="Account" mode="edit" buttonposition="" layout="">
            <column width="50%">
                  <section title="Basics">
                        <field id="Name" valuehalign="" type=""/>
                  <section title="Billing Details" collapsible="no">
                        <field id="BillingStreet" valuehalign="" type="" cssclass="needPlaceholder" snippet=""/>
                        <field id="BillingCity" valuehalign="" type="" snippet="" cssclass="needPlaceholder"/>
                        <field id="BillingState" valuehalign="" type="" snippet="" cssclass="needPlaceholder"/>
                        <field id="BillingPostalCode" valuehalign="" type="" snippet="" cssclass="needPlaceholder"/>
                        <field id="BillingCountry" valuehalign="" type="" snippet="" cssclass="needPlaceholder"/>
            <column width="50%">
                  <section title="System Info">
                        <field id="CreatedDate" valuehalign="" type="" readonly="true"/>
         <jsitem location="inline" name="addPlaceholder" cachelocation="false" url="">(function(skuid){
var $ = skuid.$;
        $('.needPlaceholder .nx-field input, .nx-field textarea').each(function(i, item){
            var placeholder = $(item).parent().parent().find('.nx-basicfieldeditor-item-label').text();
            item.setAttribute("placeholder", "Enter " + (placeholder ? placeholder : "value"));

That’s awesome for a field editor! Any magic for a table?

Actually never mind,  got it working with a table. I had my JS set to In-Line (Snippet).

Thank you very much, this is awesome.

Thanks Irvin…  Your moments of distraction are pure genius… 

I am looking for a way to tell the user what format we would like the data in. 
ex: (xxx-xxx-xxxx) before they type the actual value.  Would this code provide what I need. 
Could you provide a screen shot of the resulting UI and the javascript properties panel.  Thanks


I’ve had good luck using jQuery extensions for phone number masking. I load that extension as a static resource on the page and use a snippet as a custom renderer on the phone number field.


var field = arguments[0], value = arguments[1]; skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value); if (field.mode == 'edit'){ //setup before functions var typingTimer; //timer identifier var doneTypingInterval = 10; //time in ms, 5 second for example var $input = skuid.$("input", field.element); //on keyup, start the countdown $input.on('keyup', function () { clearTimeout(typingTimer); typingTimer = setTimeout(doneTyping, doneTypingInterval); }); //on keydown, clear the countdown $input.on('keydown', function () { clearTimeout(typingTimer); }); //user is "finished typing," do something function doneTyping () { //do something skuid.$("input", field.element).inputmask("(999) 999-9999",{ "placeholder": '_' }); } } else { skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value); }<br>