• Div Snk
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hi

We are using slds in one of our Vf page. One of the line of the page states that :

<label class="slds-align-middle">Mandatory Information</label></div>'

I want to make this text 'Mandatory Information' appear in Red. Can someone help me what changes do I need to do to or what should I add in the above line to make the text appear in Red?

Thanks
Hi, I am  making a callout to an external site to populate certain fields on the Account object based on the response of the the external site. There is a custom button on the Account object which is working on javascript and calls an apex controller which makes the callout.

The format of the apex class is :

global class ApexCallout {
    webservice static String xyz(Id accountId){
        Account accountDetails = [SELECT Id, Number1__c, Country1__c FROM Account WHERE Id = :accountId];
        // Request logic here
        // Response logic here; the response comes without any issue
        accountDetails.Registered_Name__c = response.name;
        accountDetails.Registered_Address__c = response.address;
        accountDetails.Request_Date__c = response.requestDate;
        System.debug(response);  
       return String.valueOf(response.valid);  
            
    }
    }

Valid is a boolean here.

The response of this callout is coming without any issue. Registered name, Registered Address and Request Date are the fields on the Account object which should be populated based on the response as soon as I click on that custom button on the Account detail page.
However, in my case the button is working, the response is coming but these fields are not getting populated on the detail page. Can someone please let me know what I am missing here.
Hi

We are using slds in one of our Vf page. One of the line of the page states that :

<label class="slds-align-middle">Mandatory Information</label></div>'

I want to make this text 'Mandatory Information' appear in Red. Can someone help me what changes do I need to do to or what should I add in the above line to make the text appear in Red?

Thanks
Hi, I am  making a callout to an external site to populate certain fields on the Account object based on the response of the the external site. There is a custom button on the Account object which is working on javascript and calls an apex controller which makes the callout.

The format of the apex class is :

global class ApexCallout {
    webservice static String xyz(Id accountId){
        Account accountDetails = [SELECT Id, Number1__c, Country1__c FROM Account WHERE Id = :accountId];
        // Request logic here
        // Response logic here; the response comes without any issue
        accountDetails.Registered_Name__c = response.name;
        accountDetails.Registered_Address__c = response.address;
        accountDetails.Request_Date__c = response.requestDate;
        System.debug(response);  
       return String.valueOf(response.valid);  
            
    }
    }

Valid is a boolean here.

The response of this callout is coming without any issue. Registered name, Registered Address and Request Date are the fields on the Account object which should be populated based on the response as soon as I click on that custom button on the Account detail page.
However, in my case the button is working, the response is coming but these fields are not getting populated on the detail page. Can someone please let me know what I am missing here.