durow Posted June 2, 2005 Posted June 2, 2005 Hi I used the FileMaker Site Assistant to create a website. I found that if I add a scrollbar to the text field in fmp7 the assistant creates a textarea field instead of a text field. This is exactly what I want. The problem I am having is when I go to edit the textarea field none of the data shows up. The fields that are formated as checkbox or text work correctly but not the textarea fields. Here is a code snippet generated by the assistant: skills()
Martin Brändle Posted June 4, 2005 Posted June 4, 2005 Hi I used the FileMaker Site Assistant to create a website. I found that if I add a scrollbar to the text field in fmp7 the assistant creates a textarea field instead of a text field. This is exactly what I want. The problem I am having is when I go to edit the textarea field none of the data shows up. The fields that are formated as checkbox or text work correctly but not the textarea fields. Here is a code snippet generated by the assistant: <xsl:for-each select="fmrs:resultset/fmrs:record/fmrs:field[@name='skills']/fmrs:data"> <xsl:if test="position() != 1"><br/></xsl:if> <textarea cols="50" rows="5"> <xsl:attribute name="name">skills(<xsl:value-of select="position()"/>)</xsl:attribute> <xsl:value-of select="fmrs:resultset/fmrs:record/fmrs:field[@name='skills']/fmrs:data"/> . . . Funny, this forum engine interprets your code and shows a textarea! I had to quote it and to remove the td tag to see the code. The problem is the wrong XPath in your last xsl:value-of line, because it is relative to the XPath in the xsl:for-each select. So you can replace the <xsl:value-of select="fmrs:resultset/fmrs:record/fmrs:field[@name='skills']/fmrs:data"/> line with <xsl:value-of select="."/> Actually, if you had translated the XPath in your xsl:value-of statement to an absolute path, you would get probably (have the <xsl:template match="/fmrs:fmresultset"> in mind) "/fmrs:fmresultset/fmrs:resultset/fmrs:record/fmrs:field[@name='skills']/fmrs:data/fmrs:resultset/fmrs:record/fmrs:field[@name='skills']/fmrs:data"
Martin Brändle Posted June 4, 2005 Posted June 4, 2005 Even more funny, my answer is shifted to the right.
durow Posted June 6, 2005 Author Posted June 6, 2005 Martin. Thank you!! So am I to assume that the Site Assistant has an error or am I to do something differently? All I did was push the button Again thank you.
scotty581 Posted July 13, 2005 Posted July 13, 2005 I am having this same exact problem. When I use <input> fields then it pulls the information fine, but if the fields are <textarea> fields then it does not pull the information. Sorry did not see the replies. Got it, thanks.
Recommended Posts
This topic is 7073 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now