• Balu Phrabha123
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 5
    Replies
HI All,

I have 3 fields called Pre doc line, Ladi Line and Slopping picklist value. Picklist Values(Sloping up and Sloping Down)

When Pre doc is > Ladi Line then I should show error message as Sloping Picklist should be "Sloping Up"

AND(
Post_Doc__c > LADI_Line__c,
ISPICKVAL(Sloping__c, "Slope Up"))

Error Message: Please slect Slopping up value.

Regards,
Balu
HI All, 

I want to make phone required when i click the create lead button.
But the lead is creating without phone. And also i need to show when phone is empty show tost message.  

Below is my code and it is not working. 

HTML:
<div class="slds-col slds-size_2-of-7">
<lightning-input-field class="Phone" required field-name="Phone"
value={leadphone}>
</lightning-input-field>
</div>

Js.code
handleSubmit(event) {
        this.createlabel = "Creating Lead...";
        event.preventDefault();
        const fields = event.detail.fields;   // stop the form from submitting
        if (this.template.querySelector('.Phone') === '') {
            this.fieldvalidationerror();
        } else {
            this.template.querySelector('lightning-record-edit-form').submit(fields);
        }
    }

//Tost Message
fieldvalidationerror() {
const event = new ShowToastEvent({
mode: 'dismissable',
variant: 'error',
title: 'We hit a snag!',
message: 'Please fill required fields'
});
this.dispatchEvent(event);
}User-added image
 
HI All,

For the data table i need to show the "$" in front of Revenue. 

Example: $98574.87M

{ label: 'Revenue', sortDirection: 'desc' ,sortable: true, initialWidth:120, fieldName: 'prospectRevenue', type: 'text'},
{ label: 'Industry', sortable: false, fieldName: 'naics6Description', type: 'text'},
{ label: 'City', sortable: true, fieldName: 'city', initialWidth:120, type: 'text'},
{ label: 'Zip', sortable: true, fieldName: 'postalCode', initialWidth:80, type: 'text'},
{ label: 'HQ', sortable: true, fieldName: 'headquarter', initialWidth:80, type: 'text'}

User-added image

for showing revenue logic. Please see below code for reference.
.JS
// Revenue logic
jsresult.prospectSummary.forEach(function(record){
if(record.prospectRevenue){
record.prospectRevenue = Math.round(Math.abs(Number(record.prospectRevenue)) / 1.0e+6 *100)/100 + "M";
console.log('Revenue in Millions', record.prospectRevenue);
}

Regards,
Balu
HI all,

I need to fix the the width size for zip and HQ. 
User-added image

i am using below code but not working. 
label: 'Zip', sortable: true, fieldName: 'postalCode', width:80, type: 'text'},
{label: 'HQ', sortable: true, fieldName: 'headquarter', width:20, type: 'text'}

Regards,
Azad V
 
HI,

How to delete Custom MetaData Records Via Apex class?

custom meta data = Metadata__c

Regards,
Balu
HI, 

I would like to refresh the page when the check box is checked. Actually We are using ncino UI layout. I want to reload couple of times. 

Thank you.
HI in the task page i have a field called subject. Right now i can able to save the record without entering the subject. 
But from July 1st 2018 i want to make this field as maditory field. 

How can i do this. Thanks in Advance.

Regards,
Azad V

HI I am having three picklist values.
A. Stage, B. Spend Margin, C.New Account.
Both Spend Margin and New Account are picklist values.
Picklist values for Spend Margin : Master Card & Visa Card
Picklist Values for New Account: Amex & Chase

If the stage is Close out the two picklist field values should have some picklist values in it.

Thanks for the responce.

 

HI all,

I need to fix the the width size for zip and HQ. 
User-added image

i am using below code but not working. 
label: 'Zip', sortable: true, fieldName: 'postalCode', width:80, type: 'text'},
{label: 'HQ', sortable: true, fieldName: 'headquarter', width:20, type: 'text'}

Regards,
Azad V