You need to sign in to do that
Don't have an account?
Nidhi Sharma 17
Relating values of 2 Text Area Fields
I have a VF page in a custom object consisting of 2 Text Area Field viz. 'Choose' and 'Weights'
In 'Choose' Text Area, I enter options:
a
b
c
d
And in 'Weights' Text Area, I enter options:
1
2
3
4
I want to relate one weight to one option. Say a-1, b-2, c-3, d-4
The code to seperate each field be:
private List<SelectOption> stringToSelectOptions(String str){ List<String> strList = str.split('\\r|\n'); List<SelectOption> returnVal = new List<SelectOption>(); for(String s: strList){ returnVal.add(new SelectOption(s,s)); } return returnVal;But now I am unable to link it to the previous 'Choose' field and display in the record.
A few questions. Can you please provide the VF page where you are rendering these components. Also - I assume that a dependent picklist is not what you want? Are you wanting to change value of picklist field to be 'A-1' versus 1? Just trying to better understand your use case.
Hi
I want new records to be created from these text areas such that for each record I have a field 'You chose option' (say a) and another field 'weight' (say 1); i.e. for both these text areas I want to have a new set of records in a new_custom_object related in the order of display.
Record 1: You chose option: a
Weight: 1
Record 2: You chose option: b
Weight: 2 and so on..
VF page
Apex Class