Forum OpenACS Q&A: Re: template::form::set_property needed!

Collapse
Posted by tammy m on
Well

Here's the thing. I request my page that displays the form by passing an id to it like task-new?story_id=8877 the first time I call it. So I use ad_page_contract to enforce that the story_id is required (it really is as I can't create a task without a parent story).

So then when the form is resubmitted, the story_id being required by ad_page_contract blows up. Thus I need to call the page the same way I called it when it first showed the form.

So I can create a hidden and put it in the form and get it back out etc. But then I can't really use ad_page_contract to enforce story_id being passed the first time my form display page is called. But I do think I can't do a GET and POST (meaning I can't pass parameters in the URL and via a form) at the same time.