I'm doing a form field on an app and need to included a drop down at the end of some of the text fields. For the android version I'll be using the material design standard as below.     I see that iOS doesn't endorse using a drop down but would show i picker instead. How do I visually indicate on the form that a picker control is going to be opened on a form field from a certain link or icon?
120575
I've searched quite a bit for this but surprisingly could not find any comprehensive answer. XCode doesn't provide any simple way to add dropdown lists to iOS interfaces. Stackoverflow just showed workarounds and long code just to get a simple dropdown list. This leads me to believe that the design pattern is to not really use dropdown lists! Is this true? And if so, what is the recommended alternative?
73978
I'm trying to work on the materials for my scene without touching the rest of the scene for now. When I try to switch between scenes by clicking the outlined thing, it automatically applies the selected material to the active object. Is this the wrong button? Should I be clicking something else in order to edit the material properties without applying it to my objects?   Thanks for the help in advance.
43307
I need to design a form that may consist of 3 or 4 steps, all of them requesting both mandatory and optional data. The overall form contains a lot of data inputs, so I thought it would be better to split the form into pages or steps, to avoid having a too long vertical scrolling.  I can't find any practical example of such a long form in an existing iOS app, since most of them just request few data to create an account, but my app requires collecting more user input.   Would it be a good approach to build a view for each form step, and push them all in a navigation controller?   The idea is to have the back button in the navigation bar to allow going to the previous step, and a "next" button to go forward, I don't know if placing it in the navigation bar as well, or at the bottom edge of the current view. Or maybe could I use a stepper with arrows similar to the Mail app? I couldn't find anything about it in iOS Human Interface Guidelines, only a stepper with +/- buttons. Or a segmented control, with a segment per step?  However, in iOS Human Interface Guidelines, in navigation bar section I've read that it is intended for "navigation through an information hierarchy" (). I don't know how strict is Apple when applying the guidelines in the document when submitting to the App Store, and if using this approach for peer views, as in this case, would be rejected. Another option I thought, it was using instead a page control and a scroll view... but here comes into play input validation. I suppose that for a long multistep form it should be better to validate each step's inputs before allowing continue, shouldn't it? I find easier to handle this in the first approach (navigation controller and bar), simply enabling the "next" button when the inputs correctly fulfilled, than in the page control approach (where I actually don't know if it is possible to momentarily disable forward page scrolling).
96978
When browsing the mobile theme of Stack Exchange sites, when I type a @ sign followed by a letter, it never auto completes the username for the comment like it does on the full site theme.  I think this feature is needed as it prevents me from responding to specific comments.  Can this please be added to the mobile theme as well?
83057
I want to expose some properties in the Lightning App Builder that can be set and passed to my component.  At present I don't have the proper code and so I am getting this screen.    Say I wanted to have a property called PostalCode how would I set this up within my component to provide a text box within the App Builder to set this value for the component?  Right now I have a standard Attribute for Postal Code and its not displaying a property.      &lt;aura:attribute name="PostalCode" type="String"/&gt;   Is there an additional attribute or completely different tag I should be using to set this up?
42225
With the release of iOS 6, the most commonly used mobile browser now supports standard generic image upload buttons. This is actually really handy.  I can take screenshots on my phone or iPad, and use them to answer questions about apps made to run on those devices (or ) to answer questions. Until the release of iOS 6 however, the only way to use these images in my answer was to either sync them over to my computer, and then answer from a desktop, or use a specialized app to upload the images, such as PicUp or DropBox, and then manually write out the markdown code.  After iOS 6, the Image Upload button works just fine, if I switch to viewing the full site from my iDevice, rather than the mobile view. I can upload images directly, and the markdown is handled for me. It's awesome, except for the fact that the non-mobile site is decidedly non-awesome on the small screen of my phone.  Which brings me to my feature request: Add the Image Upload button (and other markdown shortcuts, as deemed worthwhile) to the ask/answer editors on the mobile version of SE sites.
28380
My new project is to port an iOS app to Android platform. Before get started, I'm quite confused on whether I should follow google's guideline since some big titles on Android platform still keep the same look as iOS version. Style here means the entire design of the app, such as app navigation, theme, and layout.   Please help if you have any suggestions!
12365
I am making an component in lightning. i want to know how can we use the state and county picklist in this particular code.  secoundly the functionality of save and cancel button is also not working in the lightning component.Help me out.  Thanx          &lt;div class="container"&gt;                     &lt;form class="formbusiness"&gt;         &lt;h1&gt;Account Information&lt;/h1&gt;         &lt;div class="row"&gt;             &lt;h1 class="headingB"&gt;Business Account Info&lt;/h1&gt;             &lt;div class="col-md-6"&gt;                 &lt;ui:inputText aura:id="b_cname" class="form-control" value="{!v.newBAccount.Name}" placeholder="Company Name" required="true"/&gt;                 &lt;ui:inputNumber aura:id="b_bphone" class="form-control" value="{!v.newBAccount.Phone}" placeholder="Phone" required="true"/&gt;                 &lt;ui:inputEmail aura:id="b_bemail" class="form-control" value="{!v.newBAccount.Email__c}" placeholder="Email"/&gt;             &lt;/div&gt;             &lt;div class="col-md-6"&gt;                 &lt;ui:inputText aura:id="b_bstreet" class="form-control" value="{!v.newBAccount.BillingStreet}" placeholder="Billing Street"/&gt;                 &lt;ui:inputText aura:id="b_bcity" class="form-control" value="{!v.newBAccount.BillingCity}" placeholder="Billing City"/&gt;                 &lt;ui:inputText aura:id="b_state" class="form-control" value="{!v.newBAccount.BillingStateCode}" placeholder="State"/&gt;                 &lt;ui:inputText aura:id="b_country" class="form-control" value="{!v.newBAccount.BillingCountryCode}" placeholder="Country"/&gt;                 &lt;ui:inputNumber aura:id="b_zipcode" class="form-control" value="{!v.newBAccount.BillingPostalCode}" placeholder="Zip Code"/&gt;             &lt;/div&gt;         &lt;/div&gt;         &lt;div class="row"&gt;             &lt;h1 class="headingB"&gt;Respective Contact&lt;/h1&gt;             &lt;div class="col-md-6"&gt;                 &lt;ui:inputText aura:id="b_rcfirstname" class="form-control" value="{!v.newBRCAccount.FirstName}" placeholder="First Name"/&gt;                 &lt;ui:inputText aura:id="b_rclastname" class="form-control" value="{!v.newBRCAccount.LastName}" placeholder="Last Name" required="true"/&gt;                 &lt;ui:inputNumber aura:id="b_rcmobile" class="form-control" value="{!v.newBRCAccount.MobilePhone}" placeholder="Mobile" required="ture"/&gt;             &lt;/div&gt;             &lt;div class="col-md-6"&gt;                 &lt;ui:inputEmail aura:id="b_rcemail" class="form-control" value="{!v.newBRCAccount.Email}" placeholder="Email"/&gt;                 &lt;ui:inputNumber aura:id="b_rcphone" class="form-control" value="{!v.newBRCAccount.Phone}" placeholder="Phone"/&gt;                                 &lt;/div&gt;         &lt;/div&gt;         &lt;div class="buttonB"&gt;             &lt;ui:button label="Save" press="{!c.createBAccount}"/&gt;             &lt;ui:button label="Cancel"/&gt;         &lt;/div&gt;             &lt;/form&gt;         &lt;/div&gt;
111353
HTML (or maybe just XHTML?) is relatively strict when it comes to non-standard attributes on tags. If they aren't part of the spec, then your code is considered non-compliant.  Non-standard attributes can be fairly useful for passing along meta-data to Javascript however. For instance, if a link is suppose to show a popup, you can set the name of the popup in an attribute:  &lt;a href="#null" class="popup" title="See the Popup!"     popup_title="Title for My Popup"&gt;click me&lt;/a&gt;   Alternatively, you can store the title for the popup in a hidden element, like a span:  &lt;style&gt;     .popup .title { display: none; } &lt;/style&gt; &lt;a href="#null" title="See the Popup!" class="popup"&gt;     click me     &lt;span class="title"&gt;Title for My Popup&lt;/span&gt; &lt;/a&gt;   I am torn however as to which should be a preferred method. The first method is more concise and, I'm guessing, doesn't screw with search engines and screen readers as much. Conversely, the second option makes storing large amounts of data easier and is thus, more versatile. It is also standards compliant.  I am curious what this communities thoughts are. How do you handle a situation like this? Does the simplicity of the first method outweigh the potential downsides (if there are any)?
3658
I have a non-visual component which manages other visual controls.    I need to have a reference to the form that the component is operating on, but i don't know how to get it.  I am unsure of adding a constructor with the parent specified as control, as i want the component to work by just being dropped into the designer.  The other thought i had was to have a Property of parent as a control, with the default value as 'Me'  any suggestions would be great  Edit:  To clarify, this is a component, not a control, see here :
118435
I want to update field on click of ok in the javascript popup message. Is there any way that i can do in custom button javascript code  like we have checkbox field and when i click on ok in the message the checkbox need to be checked in the backend  thanks in advance
30196
I have two date fields on my Visualforce page and on occasions the datepicker/calendar pops up upon page load. I understand one way to prevent this is to use javascript as suggested below:  &lt;input id="hiddenElementId" type="hidden" /&gt; &lt;script type="text/javascript"&gt; window.onload = setFocus function setFocus() {          document.getElementById("hiddenElementId").focus(); } &lt;/script&gt;     However this post is pretty old now, is this still considered the best way to do this?
1932
I need to build a main menu that is a subset of the regular menu. The design team thinks it would be better for user to have only the most important links in the main menu and not have everything. Some links are top level menu and some are sub menus. For this I was hoping to be able to add a field to the menu link item form as a drop down. When creating a link the user could use this dropdown to "promoteToMainMenuAsBigLink" or "promoteToMainMenuAsSmallLink" or leave none to not show the item on the main menu.  I'm looking for a similar solution as this  but for Drupal 8.   I was hoping to be able to add a column in the table menu_link_content_data beside 'expanded'. I was hoping not to have to record this information in an other table like shown in the d7 solution.  I was able to add a field to the link form in a custom module I build, just for test purpose I only added a text field to start with:  custom_menu.module:  function custom_menu_form_alter(&amp;$form, FormStateInterface $form_state, $form_id) {   if($form_id == 'menu_link_content_menu_link_content_form') {     $form['promoteToMainMenu'] = array(       '#type' =&gt; 'textfield',       '#title' =&gt; t('Promote to main menu'),       '#description' =&gt; t('Promote link menu to main menu.'),       '#default_value' =&gt; '',       '#weight' =&gt; -9     );   } }   The field is indeed shown in the link form but it is never recorded.  Can someone help me with this?
42466
For example:   For an MVC architecture, should I prefer Ruby on Rails or PHP [closed] Gmail: What is a jQuery selector for incoming mail senders only? How to work with highly compressed and nested CSS in general? [closed]   Better to convert to   [closed] For an MVC architecture, should I prefer Ruby on Rails or PHP [closed] Gmail: What is a jQuery selector for incoming mail senders only? How to work with highly compressed and nested CSS in general?   I should first read the title and sometimes open the question to understand if the question is closed.  I think the [closed] mark  should be at the beginning of the title, not in the end, where I won't ever be if the title is long.  Also coloring will be a good improvement (via @Shadow Wizard).
25654
I have a field which needs to be populated from a large list of items (many thousands). These items have unique numbers as identifiers, and there can be many thousands of them. (Similar to the way that bug tracking software will label 1000 items from #1 -> #1000). The field must be populated with a valid value.   A dropdown is obviously not a suitable control here. I've thought of five possible solutions:   Free text input, with some kind of validation on input blur. As (1) but with a manual 'check' button which manually validates input instead of doing it automatically. As (1), but with a 'search' button which overlays a form allowing user to search on various item properties (ie. item title), and then select from a list of valid options? An inline sortable/filterable/pageable grid showing all items and some properties (such as identifier, Title, Date Created). As (4), but the grid is hidden by default. A 'search' button opens the grid in an overlay.    The first two options require the user to already know the ID of the item they are selecting or navigate away from the page and search for it. The inline grid might take up quite a lot of space for what is supposed to be a fairly simple selection. The overlays again seem quite complex for a simple control.  Are any of the options I've detailed appropriate? Is there a better way?
40314
After Windows 8 came out all spoke about "Metro UI" and later about the "Flat design". Now, after Android Lollipop came out all speak about "Material design". Can somebody explain the difference between "Material design" and "Flat style"?
61154
I use Stack Exchange site through my phone (iPhone) way more frequently than I do through the desktop website. When I do that, I really wish that typing the @ symbol would offer the same auto-completion of names that it triggers on the desktop site.  Is anyone working on getting that feature working? If not, I'd like to ask that you prioritize it.