I use the sample upload form from the docs (left out ‘entry_id=”{entry_id}”, as this results in the error mentioned in my other post) and I added the submit button.
Could you please check the form and tell me what is wrong.
It gives an error “Ensure all required fields are filled in”
It doesn’t show the comment textarea (see image).
Here’s my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
{exp:resources:headers load_jquery="yes" load_jquery_form="yes"}
</head>
<body>
{exp:resources:resource_form weblog="myweblog" ajax="yes" return="mytemplate"}
<p>Title<br />
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>
<p>URL Title<br />
<input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>
<p>{resource_groups}
<label>{field_label}</label>
<select name="{field_name}">
{options}
<option value="{option_value}"{option_select}>{option_name}</option>
{/options}
</select>
{/resource_groups}
</p>
<p>
{resource_type}
<label>{field_label}</label>
<select name="{field_name}">
{options}
<option value="{option_value}"{option_selected}>{option_name}</option>
{/options}
</select>
{/resource_type}
</p>
<p>
{resource_userfile}
<label>{field_label}</label>
<input type="file" name="{field_name}" value="" />
{/resource_userfile}
</p>
<p>
{resource_comment}
<label>{field_name}</label>
{options}
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}">{field_data}</textarea>
{/options}
{/resource_comment}
</p>
<input type="submit" name="submit" value="Speichern" id="submit" /><br />
{/exp:resources:resource_form}
</body>
</html>
your help is appreciated.
Werner
