[TYPO3-project-formidable] confirm for SUMBIT button
Michael Hilgers
mhil at mhil.at
Tue Jun 24 14:37:09 CEST 2008
Hi,
I am trying to make a submit button with a confirm message before the form
is submitted and data gets inserted in the DB.
But I did not succeed. Here is what I tried:
1.) This submits whatever button is pressed
<renderlet:SUBMIT name="btn-publish"
label="LLL:EXT:cty_tips_core/pi1/locallang.xml:tip.publish"
renderonly="true">
<onclick runat="server" confirm="please confirm">
</onclick>
</renderlet:SUBMIT>
2.) This does not show a message
<renderlet:SUBMIT name="btn-publish"
label="LLL:EXT:cty_tips_core/pi1/locallang.xml:tip.publish"
renderonly="true" confirm="please confirm">
</renderlet:SUBMIT>
3.) This does nothing
<renderlet:BUTTON name="btn-publish"
label="LLL:EXT:cty_tips_core/pi1/locallang.xml:tip.publish"
renderonly="true">
<onclick runat="server" confirm="please confirm">
<submit />
</onclick>
</renderlet:BUTTON>
4.) This does not dispaly a message but it submits the form ...
<renderlet:BUTTON name="btn-publish"
label="LLL:EXT:cty_tips_core/pi1/locallang.xml:tip.publish"
renderonly="true">
<onclick confirm="please confirm">
<submit />
</onclick>
</renderlet:BUTTON>
As far as I understand now I I have to user <onclick runat="server"> and I
must to add my <userobj> php function.
Is there a function to start the "normal" submit process for the form like
<submit /> or the normal submit button does for the <userobj> inside the
onklick event or can this be achieved any other way ?
IMHO it would be cool to have the confirm attribute for the SUBMIT renderlet
THX & formidable is great work! Congratulation!
Michi
More information about the TYPO3-project-formidable
mailing list