Gmail Calendar Documents Web Reader more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Dropdown question - How do I not show the first entry in a dropdown list as blank?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
greavette  
View profile  
 More options Feb 26, 4:22 pm
From: greavette <charles.sw...@gmail.com>
Date: Fri, 26 Feb 2010 13:22:38 -0800 (PST)
Local: Fri, Feb 26 2010 4:22 pm
Subject: Dropdown question - How do I not show the first entry in a dropdown list as blank?
Hello,

Learning a lot here, but back again for another lesson.  I've created
a new module (called Pulp Inventory based upon the Inventory module).
I've been successful in adding the new module to SGS and I've added a
new sub-folder to this module (essentially a second module called
Clients) and it's working great.

But I do have a question about how the clients dropdown looks.  When I
add a new Client to my Clients module, and then create a new entry in
my Pulp Inventory module, the clients dropdown in my Pulp Inventory
module shows the first entry in my clients dropdown by default.  I
would rather it show a blank in the Clients dropdown first until the
user clicks the down arrow to show the entries in the dropdown.

Can you tell me how to do this?

Here is my xml code from Pulp Inventory:
  <field name="clients" displayname="Clients" simple_type="select"
simple_size="1" required="true">
    <data function="dbselect|simple_clients|clients,clients||clients
asc|10"/>
        <link value="index.php?find=asset|simple_clients||
clients=@clients@&amp;view=display"/>
  </field>

Here is my xml code from the Clients module:
  <field name="clients" displayname="Clients" simple_type="text"
is_unique="true" required="true">
    <linktext views="display" value="#index.php?
view=details&amp;iframe=1&amp;item[]=@id@"/>
    <readonlyin views="edit"/>
  </field>

Is there something I can add to one/both of these to make it work?

Thank You.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas  
View profile  
 More options Feb 26, 4:34 pm
From: Thomas <thb...@gmail.com>
Date: Fri, 26 Feb 2010 13:34:35 -0800 (PST)
Local: Fri, Feb 26 2010 4:34 pm
Subject: Re: Dropdown question - How do I not show the first entry in a dropdown list as blank?
Hello,

you can remove <required="true"> from the code:
<field name="clients" displayname="Clients" simple_type="select"
simple_size="1">

bye
Thomas

On 26 Feb., 22:22, greavette <charles.sw...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
greavette  
View profile  
 More options Mar 1, 11:05 pm
From: greavette <charles.sw...@gmail.com>
Date: Mon, 1 Mar 2010 20:05:29 -0800 (PST)
Local: Mon, Mar 1 2010 11:05 pm
Subject: Re: Dropdown question - How do I not show the first entry in a dropdown list as blank?
That did it Thomas.  I should have caught that.

Thanks for pointing the out to me!

Charles.

On Feb 26, 4:34 pm, Thomas <thb...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google