Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Formulas & Validation Rules Discussion
- :
- Small help with custom button
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Small help with custom button
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 01:06 PM
How can i add an another filed in this to check
in this validation i am trying to check if lead follow up is false when only status is qualified and it keeps on throwing errors.
this is the workingone
{!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")}
if('{! Lead.Follow_up_done__c }' == false ){
alert('Lead can only be converted if status is Qualified.');
}else{
window.location.href = "/lead/leadconvert.jsp?retURL=%2F{!Lead.Id}&id={!L
}
this is the one not working - Ami doing the && part ri8
{!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")}
if('{! Lead.Follow_up_done__c }' == false &&' {! Lead.Sales_Lead_Follow_up__c }' == 24 hrs)
{
alert('Lead can only be converted if status is Qualified.');
}else{
window.location.href = "/lead/leadconvert.jsp?retURL=%2F{!Lead.Id}&id={!L
}
Thanks
Akhil
Re: Small help with custom button
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 02:56 PM
I don't know what data type you have for Lead.Sales_Lead_Follow_up__c, but if it's a text field then your 24 hrs should be enclosed in quotes. If it's a numeric field then you shouldn't be using the hrs.
Re: Small help with custom button
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2012 08:47 AM
Thanks for replying Enth
It is a Picklist Field
Thanks
Akhil

