Search Mailing List Archives
[bioontology-support] Pre-Populate "Preferred Name" text box from term id
Trish Whetzel
whetzel at stanford.edu
Thu Sep 30 20:31:05 PDT 2010
The widget does not support populating a default value. If you would like to display an example for the user to type, below is an example:
<input type="text" value="Enter a term, e.g. Melanoma" id="find_resource" size="30" style="width: 240px;" class="greyed ac_input">
Trish
On Sep 30, 2010, at 4:00 PM, Bhandare, Aniket wrote:
> Hi Trish,
>
> Nigam pointed me to link http://www.bioontology.org/wiki/index.php/Ontology_Widgets for widgets documentation
>
> According to that, I wrote below code. E.g. Say I want to show "Race: West Indian" as default selection. Its id is "160531006" from view "2057". So I gave shortid="160531006" to pre-populate the textbox.
>
> <input type="text" name="c" class="bp_form_complete-2057-name" size="20"shortid="160531006"/>
>
> I have also tried setting shortid="http://purl.bioontology.org/ontology/SNOMED-Ethnic-Group#160531006" and uri="http://purl.bioontology.org/ontology/SNOMED-Ethnic-Group#160531006". Still it does not show me text box pre-populated with "Race: West Indian".
>
> Can you please tell me the exact way to achieve this?
>
> Thanks,
> -Aniket
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20100930/35822c77/attachment.html>
More information about the bioontology-support
mailing list