Item15188: Form HTML render broken ?

pencil
Priority: Urgent
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: GuilainCabannes
Waiting For:
Last Change By: GuilainCabannes
  • not sure if it's a bug or if the bug is between the seat and the keyboard
  • but I've simple copy paste the exemple provided by the docs DataForms (DataForms#Using_a_web_form_to_create_a_topic_and_pass_data)
  • into FormHTMLTest
    • even everythings is not defined, I was expected to have at least the form with the submit button or the input type changed from the docs
    • using literal tag doesn't change anythings ; "<" seems to break somethings
  • I post this issue, following an identical behavior on a personnal 2.1.6 installation
  • browser inspector show a render of the form not as defined
  •  <form name="newtopic" action=" bin="" save="" sandbox="" " method="post" onsubmit="StrikeOne.submit(this)"><input type="hidden" name="validation_key" value="?ed0d87bede70f62ee864c03684a7d26f">&nbsp;
    <input type="hidden" name="formtemplate" value="simpleform" >&nbsp;
    <input type="hidden" name="topic" value="knowledgetopicautoinc00001" >&nbsp;
    <input type="hidden" name="subject" value="faqwhatiswikiwiki" >&nbsp;
    <input type="hidden" name="category" value="one" >&nbsp;
    <input name="category" value="two" >&nbsp;
    <input type="submit" class="foswikisubmit" value="create topic" >&nbsp;
    


Seems to be an character encoding problem caused by copy&paste.

-- MichaelDaum - 18 Apr 2023

Indeed, the quotes " copy paste from the help topic seems to be the right quote. So changing all copy pasted quotes (") by a keyboard typed quotes (") works well and to avoid any error, you can use the ' instead of " and then be sure all the wrong quotes (") had been replace.

-- GuilainCabannes - 05 May 2023

in that way, the exemple will be now
<form name='newtopic' action='%SCRIPTURLPATH{save}%/Sandbox/' method='post'> 
<input type='hidden' name='formtemplate' value='SimpleForm' >  </input>
<input type='hidden' name='topic' value='KnowledgeTopicAUTOINC00001' >  </input>
<input type='hidden' name='Subject' value='FAQWhatIsWikiWiki' >  </input>
<input type='hidden' name='Category' value='One' >  </input>
<input type='hidden' name='Category' value='Two' >   </input>
<input type='submit' class='foswikiSubmit' value='Create topic' >  </input>
</form> 
and a lovely button will be visible ! Thanks MichaelDaum

-- GuilainCabannes - 05 May 2023

Latest questions for going further :
  • may the wrong quotes are comming the source file of the help topic ?
  • may the wrong quotes are generated by the foswiki engine (or any of the dependencies) ?
  • may the wrong quotes are generated by the browser ? (here Chrome and Firefox had been tested, same result)
  • may the wrong quotes are coming from the clipboard ? (here test had been done under linux & windows)

To be continued...

-- GuilainCabannes - 05 May 2023

ok, it's perhaps little bit more tricky, on the test topic page : FormHTMLTest i've just copy paste again the form from the topic help and right now works well without any change
  • new test runs :
    • create virgin topic page
    • copy/paste form
    • get issue (no button)
    • change the quote " by ' or change the wrong quote " by the right quote "
    • see the button
    • copy/paste again the form and works well without changing anything

-- GuilainCabannes - 05 May 2023
 

ItemTemplate edit

Summary Form HTML render broken ?
ReportedBy GuilainCabannes
Codebase 2.1.7, 2.1.6
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r4 - 05 May 2023, GuilainCabannes
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy