• Abhiraj Datta
  • NEWBIE
  • 15 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 5
    Replies
var countryCheck=record.FP_Enable_Credit_Assessment__c; 

var userCheck = '{!User.FP_Allow_Credit_Assessment__c}'; 

if(userCheck == true) 
{ 
   if(countryCheck == 'true') 
   { 
   //Load the visualforce page 
   }  
   else 
   { 
   alert('Quick Credit Assessment is not yet enabled for this country.');
   }
}
else
{
alert('You do not have permission to run the Quick Credit Assessment'); 
}

I want to implement something like this in lightning. But without Javascript. Please help. Thanks!
User-added image
Suppose I want to show this in a pop up window on a button click from page layout.
The pop up should be something like this.
User-added image

Hi,

 I am new in Salesforce...I want to design a pop up window. The window will appear after save button is hit which will show the values those an user has entered as input. After the pop up comes out then the user will click the ok in pop up and the page will be redirected to the object view page.

 

Now how can I implement it throgh java script or any other possible way.

Can u pls provide some sample coding for it.

 

Thanks in advance,

  • September 28, 2011
  • Like
  • 0

Hi,

 

I have a string, '11/20/2010 12:00:00 PM' and i would like to set this into Date format (NOT DateTime) since i want pass this value into one of my field of type date.

 

Here my function:

 

private Date setStringToDateFormat(String myDate)
    {
        String[] myDateOnly = myDate.split(' ');
        String myDateString = myDateOnly.get(0);
        String myHourString = myDateOnly.get(1);
        DateTime d = DateTime.valueOf(myDateString + ' ' + myHourString);
        return Date.valueOf(d);
    }

 

However, everytime I run this, i received an error Invalid Date/Time.

 

Could someone help???