The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Dynamic Dropdowns with API - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Dynamic Dropdowns with API (/showthread.php?tid=270) |
Dynamic Dropdowns with API - bwaye - Aug 27th, 2009 I need to add a dynamic drop down to a form using FT SQLdata. I know it can be done because I see it in the form data (FT backend) which has been user submitted. I am still new to the API and the new way field options are configured. Any help would be appreciated. RE: Dynamic Dropdowns with API - Ben - Sep 1st, 2009 Hey Bwaye, Interesting! So what's the content you want to appear in the dropdown? A list of information pulled from multiple submissions (e.g. names or something), or something else? - Ben RE: Dynamic Dropdowns with API - stevenheidel - Dec 8th, 2009 Would adding an export type work? Something like: <select> <option value=""></option> {foreach from=$submissions item=submission name=row} <option value="{$submission.columnname}">{$submission.displayname}</option> {/foreach} </select> You would need another form with these options on it though, and would have to keep updating the field groups... RE: Dynamic Dropdowns with API - Ben - Dec 10th, 2009 Good idea. If it's submission content based, a custom export type like Steven suggest would work well. Ben |