I have a User site guest which displays fields of an object
For example, if it's a checkbox If I do
<apex: inputField value = "{! loggedC.Expression_rens_F1__c}" />
The checkbox appears well but cannot be checked
However, with
<apex: inputCheckbox value = "{! loggedC.Expression_rens_F1__c}" />
The checkbox can be checked
My VisualForce page is as follows:
<apex:page standardController="NewR__c" extensions="VisualisationController" showHeader="false" sidebar="false" standardStylesheets="false" docType="html-5.0" cache="false">
<apex:inputCheckbox value="{!loggedC.Exactitude_rens_F1__c}" />
</apex:page>
My controller is the following:
public class VisualisationController {
Public NewR__c loggedC{ get; set; }
Public VisualisationController(ApexPages.StandardController standardController) {
try {
loggedC= [SELECT Id,
Exactitude_rens_F1__c,
FROM NewR__c
LIMIT 1];
} catch(Exception e) {
System.debug(e.getMessage());
}
}
I also use text fields with inputFields and they also appear uneditable
Currently my VF page is only with apex: inputField (I don't think I'll change it given the large number)
By going to Setup-> Sites-> Click on site -> Public access settings -> Object settings
I see the object is read but I don't see how to put the object in modification
The field is read / Modified
I'm wondering if I shouldn't create a permission set instead of using the User site guest profile
Do you have an opinion?
<apex:page controller="VisualisationController" showHeader="false" sidebar="false" standardStylesheets="false" docType="html-5.0" cache="false"> <apex:inputField value="{!loggedC.Exactitude_rens_F1__c}" /> </apex:page>
public without sharing class VisualisationController { Public NewR__c loggedC{ get; set; } Public VisualisationController() { try { loggedC= [SELECT Id, Exactitude_rens_F1__c, FROM NewR__c LIMIT 1]; } catch(Exception e) { System.debug(e.getMessage()); } }