You need to sign in to do that
Don't have an account?
Arun Kumar 76
How do I get Checkbox text if that perticular checkbox is checked?
What I want to do is, if user check Duplicate Checkbox, "Duplicate" text should saved in the local variable.
I achieved this by using user interface like formula field and Workflow field update
if(Duplicate__c=TRUE,'Duplicate','' )
but I think that is not optimise solution, because I have to create seprate formula field for every checkbox.
Actually I'm a .Net guy. In .net we can get the Text as checkboxId.Text. It will give the "Duplicate". But I don't know the best solution.
suppose I have 20 checkbox. If i checked 10 checkbox and click on save button those 10 texts should assigned in 10 diff local variables. So that I can pass those values to external WebService.
Thanks in advance
I achieved this by using user interface like formula field and Workflow field update
if(Duplicate__c=TRUE,'Duplicate','' )
but I think that is not optimise solution, because I have to create seprate formula field for every checkbox.
Actually I'm a .Net guy. In .net we can get the Text as checkboxId.Text. It will give the "Duplicate". But I don't know the best solution.
suppose I have 20 checkbox. If i checked 10 checkbox and click on save button those 10 texts should assigned in 10 diff local variables. So that I can pass those values to external WebService.
Thanks in advance
In apex, you can use "Describe" methods to get field names. Please see if this helps: https://developer.salesforce.com/forums/ForumsMain?id=906F000000090l1IAA
Thanks,
Shashank