[TYPO3-english] Passing/Assigning/Inserting $GET GPvar to TS Form

Scotty C superscotty19 at yahoo.com
Thu Apr 2 10:25:59 CEST 2015


Hey everyone,
It took FOREVER, but I *finally* tracked down a solution. Because there seems to be a lot of people having the same trouble as me, here's the solution 
(thanks to http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/feed-a-typo3-ts-form-with-data-from-a-database-table.html )

page.30 = FORMpage.30 { data.cObject = COA data.cObject {    # GOAL: output "The Label: | TheLabel=label | <_GET['test']>"       # First we generate the static part of the string.    10 = TEXT    10.value = Selected Template: | Selected_Templatelabel |    # Then we collect the data from $_GET    20 = TEXT    20.data = GP : test  }  
  recipient = info at example.com  layout = <div class="some-class">###LABEL### ###FIELD###</div>}
HTH,-S.


More information about the TYPO3-english mailing list