• Obaid Khan
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 13
    Replies
Followed below
https://developer.salesforce.com/docs/atlas.en-us.externalidentityImplGuide.meta/externalidentityImplGuide/external_identity_collect_additional_fields.htm

Create field set on user object named registration and tried to use it in self registration form but no success 

Suggest please 
 
Hi friends ... this script not work.. nor displaying logs kindly suggest 

Component :- 

<aura:component controller="frLoginController"
                implements="flexipage:availableForAllPageTypes,lightning:actionOverride,flexipage:availableForAllPageTypes,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:appHostable" >
    <ltng:require styles="/resource/SLDS0110/assets/styles/salesforce-lightning-design-system-ltng.css" />
    <aura:attribute name="recordId" type="String" />   
    
    <aura:registerEvent name="createRecordEvent" type="c:createRecordEvent"/>
    <aura:handler event="force:refreshView" action="{!c.isRefreshed}" /> 

          <div class="slds-form-element">
                    <label class="slds-form-element__label" for="UserName">Username1</label>
                    <div class="slds-form-element__control">
                        <input type="text" id="UserName" class="slds-input" value="meera@gmail.com" />
                    </div>
                </div>
                <div class="slds-form-element">
                    <label class="slds-form-element__label" for="password">Password</label>
                    <div class="slds-form-element__control">
                        <input type="password" id="Password" class="slds-input" value="123" />
                    </div>
                </div>
        <div class="slds-form-element__control">
                    <button class="slds-button slds-button_brand LoginBtn" label="Login" title="Login" iconPosition = "Left" onclick="{!c.loginChk}">Login</button>
                        <div class="slds-form-element slds-m-top_small">
                            <a href="javascript:void(0)" onclick="{!c.createRecord}">Sign Up</a> |
                            <a href="javascript:void(0)">Forgot Password ?</a>
                        </div>
                    </div>

=========================
Controller :- 

  loginChk : function(component, event, helper)
    { 
         console.log('Controller handle click...');
        var Username = component.get("v.Username"); 
        var Password = component.get("v.Password");
        action.setParams({Password : Password});
        action.setParams({Username : Username});
       var action = component.get("c.loginCheck");  
        action.setCallback(this, function(response) {
                                                                        var state = response.getState();
                                                                            if (state === "SUCCESS"){ 
                                                                                system.debug('Success');  
                                                                                                        }else if (state === "ERROR") { 
                                                                                                                            system.debug('Error'); 
                                                                                                        }else{
                                                                                                                 console.log("Unknown Error") ;
                                                                                                                }
                                                                        }); 
                      
                                 $A.enqueueAction(action);
                           },                   
        isRefreshed: function(component, event, helper) {
                            location.reload();
        },

============================ 

Apex

public class frLoginController {

   @AuraEnabled
    public static List < FirstCode__FrRegistration__c > loginCheck(String Password,String Username) {
        //return [SELECT FirstCode__Password__c,FirstCode__Username__c FROM FirstCode__FrRegistration__c where FirstCode__Password__c=:Password && FirstCode__Username__c=:Username];
        return [SELECT FirstCode__Password__c, FirstCode__Username__c FROM FirstCode__FrRegistration__c where FirstCode__Password__c=:Password and FirstCode__Username__c=:Username];
}

}
<aura:component  implements="flexipage:availableForAllPageTypes,lightning:actionOverride,flexipage:availableForAllPageTypes,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:appHostable">
   
   Obaid 
   
</aura:component>

// here above repeats Obaid three times Kindly suggest how to get rid of this 
Followed below
https://developer.salesforce.com/docs/atlas.en-us.externalidentityImplGuide.meta/externalidentityImplGuide/external_identity_collect_additional_fields.htm

Create field set on user object named registration and tried to use it in self registration form but no success 

Suggest please 
 
Hi friends ... this script not work.. nor displaying logs kindly suggest 

Component :- 

<aura:component controller="frLoginController"
                implements="flexipage:availableForAllPageTypes,lightning:actionOverride,flexipage:availableForAllPageTypes,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:appHostable" >
    <ltng:require styles="/resource/SLDS0110/assets/styles/salesforce-lightning-design-system-ltng.css" />
    <aura:attribute name="recordId" type="String" />   
    
    <aura:registerEvent name="createRecordEvent" type="c:createRecordEvent"/>
    <aura:handler event="force:refreshView" action="{!c.isRefreshed}" /> 

          <div class="slds-form-element">
                    <label class="slds-form-element__label" for="UserName">Username1</label>
                    <div class="slds-form-element__control">
                        <input type="text" id="UserName" class="slds-input" value="meera@gmail.com" />
                    </div>
                </div>
                <div class="slds-form-element">
                    <label class="slds-form-element__label" for="password">Password</label>
                    <div class="slds-form-element__control">
                        <input type="password" id="Password" class="slds-input" value="123" />
                    </div>
                </div>
        <div class="slds-form-element__control">
                    <button class="slds-button slds-button_brand LoginBtn" label="Login" title="Login" iconPosition = "Left" onclick="{!c.loginChk}">Login</button>
                        <div class="slds-form-element slds-m-top_small">
                            <a href="javascript:void(0)" onclick="{!c.createRecord}">Sign Up</a> |
                            <a href="javascript:void(0)">Forgot Password ?</a>
                        </div>
                    </div>

=========================
Controller :- 

  loginChk : function(component, event, helper)
    { 
         console.log('Controller handle click...');
        var Username = component.get("v.Username"); 
        var Password = component.get("v.Password");
        action.setParams({Password : Password});
        action.setParams({Username : Username});
       var action = component.get("c.loginCheck");  
        action.setCallback(this, function(response) {
                                                                        var state = response.getState();
                                                                            if (state === "SUCCESS"){ 
                                                                                system.debug('Success');  
                                                                                                        }else if (state === "ERROR") { 
                                                                                                                            system.debug('Error'); 
                                                                                                        }else{
                                                                                                                 console.log("Unknown Error") ;
                                                                                                                }
                                                                        }); 
                      
                                 $A.enqueueAction(action);
                           },                   
        isRefreshed: function(component, event, helper) {
                            location.reload();
        },

============================ 

Apex

public class frLoginController {

   @AuraEnabled
    public static List < FirstCode__FrRegistration__c > loginCheck(String Password,String Username) {
        //return [SELECT FirstCode__Password__c,FirstCode__Username__c FROM FirstCode__FrRegistration__c where FirstCode__Password__c=:Password && FirstCode__Username__c=:Username];
        return [SELECT FirstCode__Password__c, FirstCode__Username__c FROM FirstCode__FrRegistration__c where FirstCode__Password__c=:Password and FirstCode__Username__c=:Username];
}

}

Hi All, 

My requirement is to send an email every time a lead is created to the email address associated with that lead. I've tried using a workflow rule, but I there is an issue with my recipient receiving the email. Is this the proper way to configure automatic emails to leads?User-added image

<aura:component  implements="flexipage:availableForAllPageTypes,lightning:actionOverride,flexipage:availableForAllPageTypes,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:appHostable">
   
   Obaid 
   
</aura:component>

// here above repeats Obaid three times Kindly suggest how to get rid of this 

Hi, 

 

  I am new to SalesForce and Am newbie learning Visual Force and Apex Codding. I created a new custom object with name customer_details_c and desinged a page using visual force. 

 

 In customer_details_c object it has First_Name_c and Last_Name_c as two custom fields. 

 

 Now My requirement is to create a class or controller to insert the data into customer_details_c object. Please suggest me know. How to write the class or controler with an example. 

 

Thanks

Sudhir