• sumanth sasanapuri 18
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hello,
I am trying to use following syntax for removing prefix value "NDT/", and its working fine. 
IF((BEGINS(Client_Account__r.Name, "NDT/")),SUBSTITUTE(Client_Account__r.Name, "NDT/", ""),Client_Account__r.Name) 

Original value: NDT/Test 
Expected value: Test
Result: Test

Also Wondering, how to change the above syntax for values having prefix value as "ndt/" "Ndt/" or etc.,

Original value: ndt/Test, Ndt/Test, etc.,
Expected value: Test
Results i am getting with above syntax: ndt/Test, Ndt/Test

Your help is greatly appreciated!
Thank you!
Hello,

Can anyone help me fixing the column gap issue for "Related Account", "Save" button, "Related opportunities" and "Save" button in the attached image below. 

VF page


Here`s the related code:

<apex:outputPanel id="testId">
 <apex:pageBlockSection columns="4">
    <apex:inputField value="{!objRideReport.Related_Accounts__c}" />
    <apex:commandButton value="Save" action="{!addAccount}" reRender="testId,accTable"/>
    <apex:inputField value="{!objRideReport.Related_Opportunities__c}" id="optyId" />
    <apex:commandButton value="Save" action="{!addOpportunity}" reRender="testId,optyTable"/>
 </apex:pageBlockSection>
</apex:outputPanel>


Thank you!
Sumanth