IF ! EMPTY(oRequest.form('r1b2')) oResponse.Redirect(oProp.ScriptPath+[?action=r1b2routine]) ENDIFThis works for Submit buttons. You could also change to type Button in the HTML template and shoot off custom Javascript(that could execute AVFP methods) from each of the buttons.
><form method="POST" action="<%=oProp.ScriptPath +[?action=buttonclicked] "> > <div style="position: absolute; top: 48; left: 201; width: 505; height: 50; z-index:1"> > <button name="r1b1" type="submit" style="width: 125; height: 22; font-family: Times New Roman; font-size: 10pt; font-style: italic; color: #A50400; background-color: #E7E7E7" value="but1"> > Home</button> > <button name="r1b2" type="submit" style="width: 125; height: 22; font-family: Times New Roman; font-size: 10pt; font-style: italic; color: #A50400; background-color: #E7E7E7" value="but2"> > About</button> > <button name="r1b3" type="submit" style="width: 125; height: 22; font-family: Times New Roman; font-size: 10pt; font-style: italic; color: #A50400; background-color: #E7E7E7" value="but3"> > Wiki</button> > <button name="r1b4" type="submit" style="width: 125; height: 22; font-family: Times New Roman; font-size: 10pt; font-style: italic; color: #A50400; background-color: #E7E7E7" value="but4"> > Documents</button> > > </div> ></form> > >>
>lcVar = TRANSFORM(THIS.oRequest.FORM(lcFormVar)) >lcSTR=lcSTR+[<TR><TD><b> ]+ TRANSFORM(lcFormVar) +[ </b></TD><TD> ]+crlf; > +lcVar +[</TD></TR>]+crlf >>