You need to sign in to do that
Don't have an account?
prb
How do you access an HTML form field in APEX?
If I create an HTML field (not using the apex page tag library "apex:inputTextarea"):
<textarea id="_editorContent" name="editorContent" dojoType="dijit.Editor" >
{!content.body__c}
</textarea>
why would this not work:
ApexPages.currentPage().getParameters().get('editorContent');
I get a blank value.
Is this call only for URL values?
What is the correct call for a form field?
Thanks
<textarea id="_editorContent" name="editorContent" dojoType="dijit.Editor" >
{!content.body__c}
</textarea>
why would this not work:
ApexPages.currentPage().getParameters().get('editorContent');
I get a blank value.
Is this call only for URL values?
What is the correct call for a form field?
Thanks
:smileysad:
Why don't you want to use the "<apex:inputTextarea" tag?
The rich editor available with APEX is too limited. HTML is not much use without links.
APEX strips out parameters it doesn't recognize, such as dojoType etc.
I think it should allow anything through that it doesn't recognize but that's just my opinion.
So long as I can access form fields in this manner I'm happy.
Cheers