• ram kiran verma gottumukkla
  • NEWBIE
  • 0 Points
  • Member since 2014

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

I'm having a student page with status field(drop down)- active , inactive , onhold.

If the status is inactive or onhold it must display activate student button

            <apex:commandButton oncomplete="j$('#succToastMsg').text('Student activated successfully, please continue with subjects');j$('.slds-notify_container').show();j$('#stuActModal').addClass('slds-fade-in-open');j$('.slds-backdrop').addClass('slds-backdrop--open');" value="Activate Student" action="{!acticeStudent}" rendered="{(!Student__c.Status__c == 'On Hold') || (!Student__c.Status__c == 'Inactive') && (!inactiveConfirmation)  && (!doPaymentConfirmation)}" rerender="op,htt,contSubjsOP" status="status"/> 


I written above line but its not working.

If the changed the  rerendered to  rendered="{!Student__c.Status__c == 'Inactive'  && !inactiveConfirmation  && !doPaymentConfirmation}" then its working for inactive.
It must also work for onhold status. Please help me.
Can somebody help with a formula field called "status" as follows

if field "requested" is ticked, then "status"  equals "ongoing"
if field "date approved" contains a date, then "status" equals "approved"
if field "date rejected" contains a date, then the "status" equals "rejected"

many thanks!