Hi Yavor,
Fair enough! But just so I'm clear: doesn't the message that appears after clicking the Add button ("The submission has been created. You may edit it below.") clearly indicate the submission has been created?
I agree, your suggested method is pretty clear too - I guess I'm just a little surprised there's any confusion at all, since that message should explain things right away.
Regarding your other question regarding the dropdown, the easiest solution is to simply hardcode the account IDs into the dropdown lists, like so:
It's not great, since of course the list will change, but if you have a relatively fixed list it should suffice.
Alternatively, you could call the API in your page and then use a little PHP to generate the dropdown. Something like...
All the best -
Ben
Quote:In my opinion it would be more intuitive if when the client hits the Add button on the submissions list view not to create a new record but to be redirected to the blank form (the record hasn't been created yet). There they should have buttons let’s say “SAVE” and “CANCEL”.
Fair enough! But just so I'm clear: doesn't the message that appears after clicking the Add button ("The submission has been created. You may edit it below.") clearly indicate the submission has been created?
I agree, your suggested method is pretty clear too - I guess I'm just a little surprised there's any confusion at all, since that message should explain things right away.
Regarding your other question regarding the dropdown, the easiest solution is to simply hardcode the account IDs into the dropdown lists, like so:
Code:
<select name="account_id">
<option value="2">Bob Jenkins</option>
<option value="4">Tim Smith</option>
</select>
It's not great, since of course the list will change, but if you have a relatively fixed list it should suffice.
Alternatively, you could call the API in your page and then use a little PHP to generate the dropdown. Something like...
PHP Code:
$clients = ft_get_client_list();
$options = array();
foreach ($clients as $client_info)
{
$options[] = "<option value="{$client_info["account_id"]}">{$client_info["first_name"]} {$client_info["last_name"]}</option>";
}
echo "<select name=\"account_id\">" . implode("\n", $options) . "</select>";
All the best -
Ben