[opencms-dev] OAMP webform, access individual fields?

Mathias Lin | SYSVISION mail at mathiaslin.com
Thu Jun 4 15:39:11 CEST 2009



You can modify the method createMailTextFromFields in CmsFormHandler.java of
the Formgenerator module.
That's probably the right place to implement your custom requirement.



Bugzilla from yg at mind.lu wrote:
> 
> I would like to add the link in the Mail which is generated by the
> webform, in 
> the "Mail text"-part
> 
> On Thursday 04 June 2009 13:06:15 Mathias Lin | SYSVISION wrote:
>> Where do you want to create the link? On the confirmation page?
>> You can do a replacement in
>> /system/modules/com.alkacon.opencms.formgenerator/elements/confirmation.jsp
>>
>>
>> List resultList = formHandler.getFormConfiguration().getAllFields();
>>
>> for (int i = 0, n = resultList.size(); i < n; i++) {
>> 	I_CmsField current = (I_CmsField)resultList.get(i);
>> [....]
>> 	String value = current.toString();
>> [....]
>>
>> Bugzilla from yg at mind.lu wrote:
>> > Hello,
>> >
>> > is it possible to access individual form-fields using the %(formdata)-
>> > placeholder?
>> >
>> > I would like to create a link to an url which as a variable part has
>> one
>> > of
>> > the form fields.
>> >
>> > Best regards,
>> > Yves
>> >
>> > _______________________________________________
>> > This mail is sent to you from the opencms-dev mailing list
>> > To change your list options, or to unsubscribe from the list, please
>> > visit http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>> -----
>> Mathias Lin
>> SYSVISION Ltd., China
>> http://www.sysvision.com
> 
> 
> 


-----
Mathias Lin
SYSVISION Ltd., China
http://www.sysvision.com
-- 
View this message in context: http://www.nabble.com/OAMP-webform%2C-access-individual-fields--tp23867693p23870149.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list