Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Pre-Populate "Preferred Name" text box from term id

Bhandare, Aniket abhandare at
Thu Sep 30 23:45:12 PDT 2010



Thanks for your inputs.

I was thinking more of usecase for saved data on the page. 

E.g. let's say user is creating study participant. On participant create
page, user selected participant's race as "White" using "preferred name"
widget and clicked save button on this page. Then hidden field
"c_bioportal_concept_id" tells us concept_id for race as "185984009". 

We will save this concept_id in our local database as participant race
entered by user along with view/ontology id. So next time user logs in
and revisits page for this study participant, user wants to see already
saved data. 

Is there a way to show race "White" in "preferred name" widget from
saved concept_id "185984009" and view/ontology id "2057"? I felt it
could be very common usecase for many applications and might be
supported by bioportal "preferred name" widget.





From: Trish Whetzel [mailto:whetzel at] 
Sent: Thursday, September 30, 2010 10:31 PM
To: Bhandare, Aniket
Cc: Nigam Shah; support
Subject: Re: Pre-Populate "Preferred Name" text box from term id


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





On Sep 30, 2010, at 4:00 PM, Bhandare, Aniket wrote:

Hi Trish,


Nigam pointed me to link for widgets


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"


I have also tried setting
006" and
. Still it does not show me text box pre-populated with "Race: West


Can you please tell me the exact way to achieve this?





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the bioontology-support mailing list