Question How do I pre-populate Question field on FAQClassSheet with entry from Create-FAQ-Entry form?
Answer The following mix of velocity and javascript can be used in the FAQClassSheet:

#\if($context.action=="inline")
#\set($newtitle = $request.title)
#\if($newtitle)
#\set($newtitle = $newtitle.replace('"',"'"))
<script type="text/javascript">
var title = "${newtitle}";
&#x7B;pre}
document.forms.edit["XWiki.FAQClass_0_title"].value = title;
&#x7B;/pre}
</script>
#\end
#\end
#\end
Version 1.4 last modified by Vincent Massol on 10/12/2006 at 12:50

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: XWikiGuest on 2005/11/02 23:29
This wiki is licensed under a Creative Commons license
1.5.2.12758