I have a registration form with a drop down list showing services,
depending on the service the user registers for a custom form should
display. Normally the user follows a link and the service is set based
on request.args(0):
form=SQLFORM(db.register)
form.vars.service=request.args(0)
I customize the form setting some of the fields in the register table
to readable=false and writable=false
However, when the user changes his mind and chooses an other service
from the drop down list the form should be adjusted.
<script>
jQuery("#register_service").change(function(){
### request register again args set to the new value of
register_service
</script>
What is the correct syntax to achieve this?
Kind regards,
Annet.