Hi,
I'm trying to create a view that uses the "input/autocomplete" text input.
The code in this test view is:
<div class="contentWrapper">
<form action="<?php echo $vars['url']; ?>action/issues/new" enctype="multipart/form-data" method="post">
<?php echo elgg_view('input/securitytoken'); ?>
<p>
<label><?php echo elgg_echo("issues:icon"); ?><br />
<?php
echo elgg_view("input/autocomplete",array('internalname' => 'issuer','match_on'=>'group'));
?>
</label>
</p>
<input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
</p>
</form>
</div>
And the generated code seems to look OK - except that it does not pick out matching groups - the little ticker spins but nothing shows up. I cant find any other reference to sample code on google for input/autocomplete so does this work?
Thanks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Update: Solved it with the following code. Thanks again to both of you guys.
- Previous
- 1
- 2
- Next
You must log in to post replies.