I seem to have a small problem with extend switch in ad_form, why is the following giving me an error?
---------------------------------------------
ad_form -name form_name -mode edit -cancel_url $return_url -cancel_label "Cancel" -html { enctype multipart/form-data } \
-export { group_id } -form {
item_id:key
}
ad_form -extend -name form_name -form {
{article_title:text,nospell {section "$title"}
{label "標題"}
{html {size 40}}}
} -select_query_name get_article -validate {
# Must fufill below setting...
{article_title
{[string length $article_title] < 500}
"Title must be a string containing less then 500 characters"
}
} -new_data {
---------------------------------------------
Key "item_id" has the value "104521" but no select_query, select_query_name, or edit_request clause exists. (This can be caused by having ad_form request blocks in the wrong order.)
while executing
"ad_form -name form_name -mode edit -cancel_url $return_url -cancel_label "Cancel" -html { enctype multipart/form-data } -export { group_id } -form {
..."
whereas if I just removed the line 'ad_form -extend -name form_name -form {' it works fine, everything else being the same? I am positive I have my select_query immediately after the form creation blocks. I have never had this problem with all my other ad_forms.
Thanks,
Jason