Maybe I was not clear enough:

1) I need the form to be prefilled based on an argument I give to the page 
via the URL.

Example:

- browse to PAGE/admin/user?customer_id=1
- The user form shows up with all fields empty, except the customer_id 
field which is set to 1

2) I want the form to only be accessible if PAGE/admin/user?customer_id?=X 
(X being any existing customer_id) is called. If you do not submit 
?customer_id=X, I want the page to urge you to do it.

Now: Problem #1 is by far the most important. If Problem #2 cannot be done, 
that is fine and I will work around it.

I hope this information helps :)


Also, thank you for taking so much time with this problem.


On Thursday, July 25, 2013 12:23:16 PM UTC-4, Alessandro Molina wrote:
>
> On Thu, Jul 25, 2013 at 4:19 PM, Dennis Backhaus <
> [email protected] <javascript:>> wrote:
>
>>
>> I have seen the example you are linking, but that does not help. I am 
>> able to prefill any value with a pre-defined value already. The problem is, 
>> that I want to prefill it with a value taken from kw (from the URL). In 
>> fact, I need it to complain if a certain value ('customer_id') is NOT 
>> passed in the URL.
>>
>
> There is something I'm missing,
> If you just need it to complain when customer_id is missing, why not 
> adding a required validator to customer_id?
>  

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to