Best practice for button layout in responsive survey?

enter image description hereHi everyone,

I’m designing a survey experience for a healthcare platform in which the user (often on the older side) fills out multiple surveys within a single flow.

To accommodate survey fatigue, I added a “finish later” button to the desktop design, Plus a “changes saved” indicator to mitigate anxiety of exiting a survey prematurely.

But as you can see, all the buttons don’t fit in a single row on the mobile design. To solve for this, I suppose I could go one of three ways:

The first way would involve just eliminating the “finish later” button and “changes saved” indicator from both designs; but of course the downside is that the user doesn’t have any indication that they could exit the survey aside from the “x” button on top – and with upwards of 10 surveys to complete, I am worried this will cause fatigue and drop off.

Second, I suppose I could remove those two elements from only the mobile form, but this would create the problem outlined in the first solution for mobile users, not to mention I don’t even know if this is technically feasible. (We’re building this with react).

Third, I could stack the buttons vertically in the mobile version, although I anticipate that will cause issues around visual hierarchy and limited screen real estate- and again, not sure if that’s even technically feasible.

Im wondering if anyone here has any experience with this dilemma who might share their insight? Or if you just have a good idea, any help is appreciated!

usability – Preslecting button for user in finance environment

Im fighting to figure a problem I need to solve in our crypto deposit app we have:

Problem:
We want to show the user what is the best amount to deposit/exchange

Our chef leader if pushing to preselect the buttons and add labels to them but I believe that is NOT a good idea to make choices for the users themselves.
Any idea of how to solve this elegantly without pushing on Users too much?

Example

repair – How do I disassemble FujiFilm X-T1 camera to disable the ISO dial lock button protection?

How to disassemble / take apart Fujifilm X-T1 and how to disable ISO Dial lock switch.

It is relatively easy to take apart FujiFilm X-T1. You only need one type of screwdriver, although the screws themselves are different. So as usual, make sure to have several small containers and a piece of paper to write down/draw where a particular screw came from. It took me less than half an hour. And I had no idea what I was doing. Took longer to document the process 🙂

The way the camera opens is, the top part comes loose and the back slides out, separating from the front. WARNING: DO NOT remove the top first. Just unscrew it and notice that it is loose and leave it be. The reason is that it has several short ribbon (film) cables, and if you lift it up first, you’re likely to disconnect or mis-align them, or worse!

So first remove all the screws that I will mention below in diagrams, then slide the back side out, and the then the top will easily lean back. The back side is preventing it from leaning back. Here in this photo you can see that I tried it at first without removing the backside:
enter image description here

As you’re removing the back side make sure to support the top so that it doesn’t fall, pulling on the cables. Back side also has ribbon cables but it’s much more easy to handle, they’re only attached towards the bottom (see image below).

So if you do everything right, no need to unplug any of the cables. If you’ve ever dealt with ribbon cables you know why I’m stressing this part so much. They and the ports they go into are very fragile and difficult to handle. Tweezers can scratch them and even cut the connection. (Here they’re not that big of a deal as in Fuji lenses I opened previously, but still why bother if you don’t have to right?)

So, lets do it step by step. 

1) Bottom: there are 8 screws – unscrew all

2) Front: only 1 (small) screw on the right side, peal off the rubber covering.enter image description here

Left/Right is when facing the camera.

3) Left: 2 above, 2 below (all behind the rubber)

4) Right: 2 above (behind the rubber) and one behind the USB door

5) Back side: Lift up the viewfinder rubber guard to reveal 2 screws, and flip up the LCD to reveal two screws there: enter image description here

The lower part behind the LCD has 4 more screws. Those ones only hold the LCD in place. Don’t remove them.

6) Once these screws are removed the camera can come apart. Again, don’t pull on the top part. Slide the back side out as in this diagram:enter image description here

enter image description here

It comes apart this way, so the middle sides belong to the front part. That’s why in the previous pic I’m pushing the top edge out with my index fingers and bottom with my thumbs.enter image description here

7) And it opens up like thisenter image description here

8) Now with the back cover down, the top part can be leaned backwards easily:enter image description here

9) And you have access to the ISO dial mechanism. Just unscrew that middle screw and follow the diagram to remove the evil silver ring. It actually snaps on/out. So if you ever wanted to put it back, it’s a possibility.enter image description here

10) And here’s how it looks like inside. enter image description here

Before doing this, I was wondering if there’s a spring inside etc, and that afterwards there would be a hole I would need to seal… but none of that!
Once you take out the ring and close up the camera, the button is still in place and presses down like before, except it has ZERO effect now! The ISO dial still clicks as you rotate it, same as before. It’s like the magic fairy came and took only this silly ISO dial lock “feature” away without any side effects, with an exception of course, that you actually have to do it all yourself 😉

javascript – how to make a single button that changes from uppercase to lowercase

my assignment is to create a single button that changes the text in a text entry box to all uppercase and all lowercase in html and javascript. when the page is reloaded, it goes back to the default that the value that the text entry is. the button name is also supposed to change when clicked (so like when the button was clicked and the text is now all uppercase, the button name should change to “lower” so that when you click it it would change the text back to lower. and once at lower the button name should change to “UPPER”). the button is also supposed to be centered, and we are supposed to make a function in javascript to do this. this is the html code of my text entry box:

<p align="center" style="font-weight: normal;"> Question: <input type="text" name="URL" value="Where will the URL be displayed?" size=30 readonly> </p>

and this is the code i have so far for the button (i don’t have a function name yet and im not sure what to put for the value yet):

 <p align="center" style="font-weight: normal;"> <input type="button" value="???" name="uplow" onClick="function_name();" </p>

i am pretty much open to any answers, and thank you for the help !!!

magento2 – Need to call a function on button click

I need to print log info when a button is clicked. I am using the below code, please let me know what are the mistakes in my code. I am trying to call a function like below.

‘on_click’ => ‘execute();’,

Button.php

_logger = $logger;
}

public function render(AbstractElement $element)
{
$element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
return parent::render($element);
}
protected function _getElementHtml(AbstractElement $element)
{
return $this->_toHtml();
}
public function getCustomUrl()
{
return $this->getUrl(‘hello’);
}
public function hello()
{
$test = ‘hello’;
echo $test;
}
public function execute()
{
$this->_logger->info(‘Hello This is our Custom log file example’);
}
public function getButtonHtml()
{
$button = $this->getLayout()->createBlock(‘MagentoBackendBlockWidgetButton’)->setData((‘id’ => ‘btn_id’, ‘label’ => __(‘Create’),’on_click’ => ‘execute();’,));
return $button->toHtml();

}
}

**button.phtml**

getCustomUrl();
echo $block->hello();
echo $block->getButtonHtml();
?>

css – What causes button text to be centered?

Out of curiosity… When applying the same CSS to common HTML tags, <button/> seems to stand out in terms of text alignment: In contrast to other tags, it centers text vertically and horizontally automatically.

.box {
  width: 100px;
  height: 100px;
  display: inline-block;
  border: 1px #000 solid;
  background: none;
  box-sizing: border-box;
}
<button class="box">Button</button>
<div class="box">Div</div>
<span class="box">Span</span>
<a class="box">Link</a>

I’m getting:

enter image description here

I’m wondering why that is the case. Looking at the computed box model properties in the browser the elements have more or less the same values. I’m cross referencing them with approaches to achieve vertical centering, but I can’t spot what actually causes it. I also looked into browser defaults (see e.g. this question), but surprisingly e.g. the Firefox defaults contain nothing specific for <button/>.

Any ideas why that is the case? Is a <button/> somehow special according to the specs, so that e.g. the centering behavior cannot be explained just by looking at computed CSS properties?

google compute engine – Unable to delete VM instance. Delete button is disabled

I am unable to delete a VM create . Below is machine type

f1-micro (1 vCPU, 0.6 GB memory)
NOte:- Delete button is diabled for me. Hence cant delete

below is error that i get from cloud shell:-
ERROR: (gcloud.compute.instances.delete) Could not fetch resource:

  • Invalid resource usage: ‘Resource cannot be deleted if it’s protected against deletion.’.

Please help me in resolving this issue.

thanks

How to see which mouse button was pressed (Unity Input System)

You don’t.

The InputActions assets in the new input system are meant to create an abstraction layer between different pieces of input hardware and what actions their inputs are supposed to trigger in the context of the game.

That means Actions are meant to be semantic, not technical. You don’t want to do something when the player clicked the mouse button. You want to do something when the player delivered an input with a specific meaning within the context of your game. And one way to deliver that input might be the click of a specific mouse button… and another might be a gamepad button… and another a gesture on a touchscreen.

This philosophy is reflected by the InputValue object passed to your event handlers which react to those actions. It only provides a value and hides the technical details of which physical part of which device provided that value.

Currently you have an action with the meaning “Mouse Button Clicked” which is triggered by three different hardware inputs, namely left-click, right-click and middle-click. This would be fine if you wanted all three mouse buttons to do the same thing, but even then you would rename that action to what you actually want to happen on a mouse-click.

If you want each mouse-button to perform a different kind of action, then you would create three actions named after what you actually want to do (Select, Deselect, NavigateBack, MapPanningMode, Fire, AltFire… whatever makes sense in the context of your game), and assign each mouse button to the corresponding action.


Yes, the new input system has a very different philosophy than you might be used to as a user of the good old hardware-oriented Input class (especially when you are one of the Unity developers who so far eschewed the InputManager window and preferred to work with KeyCode’s instead). So when you want to use the new input system efficiently, then you need to really change the way you think about input.

But it is really worth it to give it a chance, because when you understood and internalized the way it wants you to use it, then supporting different kinds of input devices and keyboard layouts turns from a chore into a triviality.

home button – How to reenable the old android google translate feature to translate everything on screen?

Few years ago on my android was possible keeping pressed the home button, to activate a feature that would allow to translate everything on screen. Unfortunately in a subsequent update google decided to replace that awesome functionality with the useless google assistant. Do you know how I can do to get that back? I know it is possible to update screenshots but that it is a way more cumbersome process.