• Srisha Pyati
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
<apex:page standardController="Case" >
    <apex:pageBlock >
    <apex:form >
        
        <apex:commandButton action="window.close()" value="Close" onclick="window.close()"/>
        
    </apex:form>
    
   </apex:pageBlock>
    
    
    
</apex:page>


please help me out what would be missing ..getting error like formula is missing..but it works fine in preview section but not in org..need help with this
<apex:page standardController="Case" >
    <apex:pageBlock >
    <apex:form >
        
        <apex:commandButton action="window.close()" value="Close" onclick="window.close()"/>
        
    </apex:form>
    
   </apex:pageBlock>
    
    
    
</apex:page>


please help me out what would be missing ..getting error like formula is missing..but it works fine in preview section but not in org..need help with this

Hi,

I'm facing a weird error "Formula Expression is required on the action attributes".

 

My VF Page:

<apex:commandButton value="Log-in"  action="{!loginTest}"/>

 

My Class:

public pagereference loginTest(){
pagereference redirect = new PageReference('apex/newPage');
redirect.setRedirect(true);
system.debug('Hello@@'+redirect);
return redirect;
}

 

But when I click on login button i'm facing a weird error 'Formula Expression is required on the action attributes'.

 

Syntax looks fine,but some how it is not working.

Any help is much appreciated :)