This question about Using an extension: Answered
I'm trying out
RenderFormPlugin as it seems flexible and usable vs standard dataform. When creating topics from the examples in the topic page everything is ok but when I try out RENDERFORM with topic names differing it looks like the rfp_s_formName does something not logical to me. The issue occurs when rendering a record and clicking on
[EDIT FORM]
. Even if DEFAULT parameter is the correct form name it does something wrong when going to edit mode. The rfp_topic parameter is correct but rfp_s_formName is something like "renderFormWebNr" where Nr is 10 or some varying number. The topic with RENDERFORM is named "TestRenderKontakt" and the form name is "KontaktForm".
I can't quite figure out the code but I see that putting both DEFAULT parameter and formName to the same form then it works, but there is some garbage text right above the rendered form:
KontaktFormCheckFormData?();" name="KontaktForm">
Dont know if I'm not doing things right or it could be a bug or missing doumentation.
After trying to read code it looks like the text above the form is from
sub render {
in
RenderFormPlugin/Core.pm line 211 and 212, it is printed readable on the screen.
After after: think I found the error, it is line 210 in said file. I guess because of strikeone the
form
html syntax is a bit more complex and it gives this behaviour because there's some text spanned in
onsubmit
that uses double quotes. I changed so single quotes and it looks fine. I'll open a bug report on this,
Foswiki:Tasks/Item8318.
Setting this to answered. For me I had to change double to single quotes and also use the formName parameter, like this:
RENDERFORM{ "MyForm" formName="MyForm" }
--
LarsEik - 03 Nov 2009