form id missing

bouton 02 Aug, 2007
could you a form id tag? this is very useful for javascript/ajax/DOM type implementations. I have had to hack the chronocontact.html.php code such that

<form name="<?php echo "ChronoContact_".$rows[0]->name; ?>" id="<?php echo "ChronoContact_".$rows[0]->name; ?>" enctype="multipart/form-data" method="<?php echo $paramsvalues->formmethod; ?>" action="<?php echo $actionurl; ?>" <?php echo $rows[0]->attformtag; ?>>


see post http://www.chronoengine.com/index.php?option=com_fireboard&Itemid=37&func=view&catid=5&id=1578 for how I use form id
thanks

Katherine

Post edited by: bouton, at: 2007/08/02 15:14

Post edited by: bouton, at: 2007/08/02 15:14<br><br>Post edited by: bouton, at: 2007/08/02 16:06
GreyHead 02 Aug, 2007
Hi bouton,

I think you can just add an id in the 'Form tag attachment' field on the General tab.

Bob<br><br>Post edited by: GreyHead, at: 2007/08/02 16:29
bouton 02 Aug, 2007
didn't know that - cool.

But it needs to be dynamic so that I can referer to it on the fly with a validation script. figured if i just named it the same as the generated form name that would be easiest.

Otherwise how do I refer to the value of "form tag"<br><br>Post edited by: bouton, at: 2007/08/02 16:45
GreyHead 03 Aug, 2007
Hi bouton,

You're right, I can't see a way to get a dynamic reference without altering the code. Might be useful to have that id in a future version.

Bob
This topic is locked and no more replies can be posted.