Hi team,
I have built a standalone form which submits data to a weblog. In this example the title is irrelevant and therefore could be anything at all but because a weblog entry requires a title I need to fill it. Ideally I would like to dynamically populate the title field based on input information or turn it off for that matter - is that possible?
To give you an example:
I have a form which looks like this:
Title
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>
{custom_fields}
{if required}* {/if}{field_label}
{if textarea}
<textarea name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}">{field_data}</textarea>
{/if}
{if textinput}
<input type="text" dir="{text_direction}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50">
{/if}
{if pulldown}
<select name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{/if}
{if date}
<input type="text" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50">
{/if}
{if relationship}
<select name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{/if}
{/custom_fields}How can I go about doing this? Would the following work?
<input type="hidden" name="title" id="title" value="field_ft_36" size="50" maxlength="100" /></p>Kind regards,
Special Kay