[TYPO3-project-formidable] confirm for SUMBIT button
Jerome Schneider
typo3dev at ameos.com
Wed Jun 25 12:12:38 CEST 2008
Hi Michael, I tested this version and it seemed to work. Mode is submit
mode, can be one of "full", "refresh", "test", "draft"
<renderlet:BUTTON label="subconfirm" name="subconfirm">
<onclick runat="server" confirm="Sure ?" mode="full">
<userobj>
<php />
</userobj>
</onclick>
</renderlet:BUTTON>
However this should be improved, as u suggested.
Regards,
Jerome
Michael Hilgers a écrit :
> 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
>
>
>
>
>
--
*Jérôme Schneider*
/Developer/
/Formidable - Rapid Application Developpement Framework for Typo3
<http://formidable.typo3.ug>/
/Ameos <http://www.ameos.com>/
More information about the TYPO3-project-formidable
mailing list