Required Field Red Asterix Slds Required

Simple code explaining use of slds-required to get red asterixs for input fields label. <div class="slds-form-element"> <label class="slds-form-element__label" for="cusinfocomp-input4"> <aura:if isTrue="{!v.required}"> <abbr class="slds-required" title="required" aura:id="emailReq">* </abbr> </aura:if> Email Address </label> <div class="slds-form-element__control"> <ui:inputText aura:id="cusinfocomp-input4" class="slds-input" value="{!v.contact.Email}" blur="{!c.checkValidate}"/> </div> </div>

Reusable InputPicklist Lightning-Component for free :)

Do you love lightning way of componentizing things, but miss good`ol Visualforce out of box way of handling picklist input field just by using , worry no more, will show you how to create a reusable lightning component named c:inputPicklist...

Get picklist field values from a given object and field name using Dynamic Apex

public static List<String> getPicklistFieldValues (String objectName, String pickListFieldName){ List<String> picklistValues = new List<String>(); SObjectType objectType = Schema.getGlobalDescribe().get(objectName); List<Schema.PicklistEntry> pick_list_values = objectType.getDescribe() .fields.getMap() .get(pickListFieldName) .getDescribe().getPickListValues(); for (Schema.PicklistEntry aPickListValue : pick_list_values) { picklistValues.add(aPickListValue.getValue()); } return picklistValues; }

Jekyll Prose Io

– layout: post published: false title: Jekyll + Prose.io mathjax: false featured: true comments: false headline: Making blogging easier for masses categories: webdevelopment tags: jekyll — Nothing beats Medium when it comes to blogging. Its overly simplistic, minimal and its...