You need to sign in to do that
Don't have an account?
enossir
Conditional rendering on VF page based on a variable which is a record ID number from controller
Now i have a text field called Other__c that needs to display if a related lookup value is selected the Symptoms__c field. The reason the Symptoms__c field is a lookup field is because the values in that field are related to a seperate lookup called Machine__c...that's not important. But every machine has a related "Other" Symptoms__c record.
How it currently works is when you select a machine the page refreshes and loads the corresponding values of the Symptoms.
12:59:39:038 USER_DEBUG [95]|DEBUG|
(System.SelectOption[value="a1K2a000000CgJcEAK", label="Configuration", disabled="false"],
System.SelectOption[value="a1K2a000000k5sYEAQ", label="Other", disabled="false"])
for example if i selected machine test i'd get these two possible selections.
Now after i select Other as the symptom i was the Other__c field to display on the VF page.
Currently i have a mess of VF, method and JS just to get the machine-->symptoms to work but that's because it's reloading a related list and having it display as a picklist. I feel like this one should be easymoney because it's just a if value is selected on the page then render.
How it currently works is when you select a machine the page refreshes and loads the corresponding values of the Symptoms.
12:59:39:038 USER_DEBUG [95]|DEBUG|
(System.SelectOption[value="a1K2a000000CgJcEAK", label="Configuration", disabled="false"],
System.SelectOption[value="a1K2a000000k5sYEAQ", label="Other", disabled="false"])
for example if i selected machine test i'd get these two possible selections.
Now after i select Other as the symptom i was the Other__c field to display on the VF page.
Currently i have a mess of VF, method and JS just to get the machine-->symptoms to work but that's because it's reloading a related list and having it display as a picklist. I feel like this one should be easymoney because it's just a if value is selected on the page then render.
apex:actionSupport event = "onChange"
then if label = other rerender="Other1"