You need to sign in to do that
Don't have an account?
Sandrine94748
Display text based on condition and in hyperlink
Hello,
I want to achieve two things in my formula:
1) Based on condition display text
2) Display that text in hyperlink
For example the algo is like
If(customField__C = 'PQR')
Then Display/text value is TT-PPQR
Else if(customField2__c == 'ERT')
Then Display/text value is TT-ERT
Else
Display/text value is ZZR
I wantt o diplay them as hyperlink like when they click on them it should redirect them to www.ZZR.co.fr website
just an example
thanks for suggestion !
As You asked that whenever you enter the value in a particular textbox , the value should be updated with the prefix 'TT-'. So for the same , i have made the trigger on the custom field (Label Name - Custom Field) that will update the field with the prefix you want to add.
In addition to it , you want the hyperlink for the same textbox . This cannot be possible . Alternatively , you can create another custom field (URL TYPE) , and get updated on the other text field On which trigger is updating the value. In that url you can provide any url you want to give.
Here is a complete code :
Apex Class Code - >
Apex trigger - >
For the Formula field please check the screenshots.
Regards,
Akshay