• Nerdy
  • NEWBIE
  • 25 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 8
    Replies
Hello Community

I have a custom object MyCustomObj__c which has 2 relashionship lookups on Contact Object. Contact1__c and Contact2__c
How can I insert with apex a record in Contact1__c  ?
Hello Community,

Can you help me to achieve this requirements :
I need to implement Lightning Form With Multiple Checkbox Select Options.
How can i implement the markup and the controller to handle the selected answers ?

User-added image



 
Hello Guys,
Can you help to achieve my first lightning component ?

I want to insert 2 records (of 2 different objects Obj
<div class="container-fluid">
        <h3>Please Enter The Candidate Information</h3>
        <div class="form-group">
            <label>First Name</label>
            <ui:inputText class="form-control" value="{!v.Obj1.First_Name__c}"/>
        </div>
        <div class="form-group">
            <label>Last Name</label>
            <ui:inputText class="form-control" value="{!v.Obj1.Last_Name__c}"/>
        </div>
        <div class="form-group">
            <label>Email Address</label>
            <ui:inputText class="form-control" value="{!v.Obj2.Email__c}"/>
        </div>
        <div class="form-group">
            <label>SSN</label>
            <ui:inputText class="form-control" value="{!v.Obj2.SSN__c}"/>
        </div>
    </div>
    <div class="col-md-4 text-center">
        <ui:button class="btn btn-default" press="{!c.create}">Create</ui:button>
  </div>

1 an Obj2) whenever the user saves a lightning form 
I have juste finished the markup(fields are from both objects ) and i want to implement logic (js controller and apex controller) so that when i save the form , records are created with populated fields.








 
I am completely lost and confused on this challenge and I dont know how to fix it. Every time I try to add Edna Frank as an external user it says "An account owner must be associated with a role to enable portal users or transfer portal users to his or her account." Anyone know what I'm doing wrong?

In this challenge, you set up the external sharing model, create a sharing set, and create a customer community user. First, set up the external sharing model with Case set to private. Then, enable Customer Portal settings, and create a sharing set titled Share cases with customers for the Customer Community User Profile. In this sharing set, grant customer community users read and write access to the case object for all cases associated with their account.
Ensure that your DE org user has a role assigned.
Create a customer community user from Edna Frank's contact record. (Your DE org should already have a contact record for Edna Frank. If it doesn't, create a new contact with first name Edna and last name Frank.)
Ensure that the account associated with Edna Frank has cases associated with it.
Ensure that sharing set mapping is set to User:Account = Case:Account.
 
I am tryng to implement Image Slider in visualforce. This is my code so far can anyone please help me with this. In this code i have added 3 images but Its only showing the first image and slider is also not working.

<apex:page showHeader="false" sidebar="false" standardStylesheets="false">
<html lang="en">
    <head>
        <!-- Bootstrap core CSS --> 
        <apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/css/bootstrap.min.css')}"/>
        <title>Image Slider Using Bootstrap</title>
        
        <!-- <apex:image alt="Challenge Image1" title="Challenge1" url="{!URLFOR($Resource.Challenge1, 'Challenge1.jpg')}"/> -->
        <!-- <apex:image url="{!$Resource.Challenge1}"/> -->
    </head>
<body>
<div class="container text-center">
<!-- Inside body ----------------------------------------------------------------------------------------------------------------------------------- -->

    <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
        <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            <li data-target="#carousel-example-generic" data-slide-to="2"></li>
        </ol>
     
        <!-- Wrapper for slides -->
        <div class="carousel-inner">
            <div class="item active">
                <!-- <img src="http://placehold.it/1200x315" alt="..." /> -->
                <apex:image url="{!$Resource.Challenge1}"/>
                <div class="carousel-caption">
                    <h3>Caption Text</h3>
                </div>
            </div>
            
            <div class="item">
                <!-- <img src="http://placehold.it/1200x315" alt="..." /> -->
                <apex:image url="{!$Resource.Challenge2}"/>
                <div class="carousel-caption">
                    <h3>Caption Text</h3>
                </div>
            </div>
    
            <div class="item">
                <!-- <img src="http://placehold.it/1200x315" alt="..." /> -->
                <apex:image url="{!$Resource.Challenge3}"/>
                <div class="carousel-caption">
                    <h3>Caption Text</h3>
                </div>
            </div>
        </div><!-- Wrapper for slides End -->
 
        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        
    </div> <!-- Carousel -->

<!--Inside Body end -------------------------------------------------------------------------------------------------------------------------------- -->    
</div>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <apex:includescript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"/>
    <apex:includescript value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/js/bootstrap.min.js)"/>
    
    <apex:includeScript value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/js/bootstrap.js)"/>
</body>
</html>
</apex:page>
Hi All,

Can anyone please help me with bellow challenge.


Create an Apex trigger for Account that matches Shipping Address Postal Code with Billing Address Postal Code based on a custom field.
For this challenge, you need to create a trigger that, before insert or update, checks for a checkbox, and if the checkbox field is true, sets the Shipping Postal Code (whose API name is ShippingPostalCode) to be the same as the Billing Postal Code (BillingPostalCode).The Apex trigger must be called 'AccountAddressTrigger'.
The Account object will need a new custom checkbox that should have the Field Label 'Match Billing Address' and Field Name of 'Match_Billing_Address'. The resulting API Name should be 'Match_Billing_Address__c'.
With 'AccountAddressTrigger' active, if an Account has a Billing Postal Code and 'Match_Billing_Address__c' is true, the record should have the Shipping Postal Code set to match on insert or update.

For above challenge i tried with following code but looks like it doesnt mach the requirement.

trigger AccountAddressTrigger on Account (before insert, before update) {
    for(Account a : Trigger.new){
        If (a.Match_Billing_Address__c = true) {
            /*ShippingPostalCode = BillingPostalCode;*/
        }   
    } 

}

Please help me