I have a field of type rich text area and one field of type URL. My requirement is when I click on field of type rich text area(Image) it should move to the location as specified by other field of type URL.Any help will be greatly appreciated.
This code I am using Url__c field of type URL and Navigation IMAGE is image. "recordWrapperForContent.sfdcObject" is wrapper class variable This is So what I want is when I click on field of type rich text area(Image) it should move to the location as specified by other field of type URL.I am getting this error when I click on Image
" The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores."
This is wrapper class
public class TravelDocumentWrapper_v2
{
public TravelDocumentWrapper_v2(Picklist_Values_Available__c pickObj)
{
docTitle=pickObj.Picklist_Value__r.Label__c;
docArticle=new Information__kav();
docLevel=pickObj.Picklist_Value__r.Navigation_Level__c;
isCurrentActive=false;
docRecordId=pickObj.id;
parentRecId=pickObj.Picklist_Value__c;
travelDocWrapperList=new List<TravelDocumentWrapper_v2>();
briefSummary='';
//docImage= EncodingUtil.base64Decode(pickObj.Picklist_Value__r.Navigation_Image__c);
sfdcObject=pickObj.Picklist_Value__r;
}
// public Blob docImage{get;set;}
public Sobject sfdcObject{get;set;}
public String parentRecId{get;set;}
public String docTitle{get;set;}
public Information__kav docArticle{get;set;}
public String docLevel{get;set;}
public Boolean isCurrentActive{get;set;}
public String docRecordId{get;set;}
public List<TravelDocumentWrapper_v2> travelDocWrapperList{get;set;}
public String briefSummary{get;set;}
}
Fields are : URL Url__c URL(255) Navigation ImageNavigation_Image__cRich Text Area(32768)
Where are you implementing this requirement? On a standard page, a detail page, etc? Do you have any custom code you've already written?
Kindly post your code so that we can have better understanding of it which results in good and easy troubleshooting.
Best Regards,
Nagendra.P
<apex:outputLink target="_blank" value="{!recordWrapperForContent.sfdcObject['Url__c']}"> <apex:outputField value="{!temp.sfdcObject['Navigation_Image__c']}" style="height: 240px !important; width:100px !important;" ></apex:outputField></apex:outputLink>
This code I am using Url__c field of type URL and Navigation IMAGE is image. "recordWrapperForContent.sfdcObject" is wrapper class variable This is So what I want is when I click on field of type rich text area(Image) it should move to the location as specified by other field of type URL.I am getting this error when I click on Image
"
The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores."
Seems no issue with the above code,please let us know whether you are using a standard controller or custom controller.
Kindly post the complete code snippet what you have.
Best Regards,
Nagendra.P
Fields are : URL Url__c URL(255)
Navigation ImageNavigation_Image__cRich Text Area(32768)