In our previous blogs of the ‘Controls in Dynamics 365 for Mobile App’ series, we discussed Input Mask, Multimedia, Website Preview, Auto-Complete, Option set, Star Rating controls and Contract Calendar. The Contract Calendar Control may help you to view the time table in order to understand what time the task needs to be performed on weekly basis. Contract calendar Control can be used as Task Scheduler on weekly basis on Mobile and Tablet.
Today in this blog let’s discuss about another control in Dynamics 365 called ‘Flip Switch’.
What is Flip switch and how it can help users?
The Field Type to use Flip Switch would be ‘Two options’.
If you go by UI perspective, Flip switch control- Yes/No (Boolean) options would give the nice field look in the web, mobile app and Tablet. Instead of using check boxes and radio buttons, this control adds a visual effect like the On/Off switch way.
Let us see an example where we have added Flip Switch control on the Account entity record:
In this example, we will add the Flip Switch control on the Account entity record. We need to use the visual effect of Flip Switch to see whether the Account is Taxable or not.
1. First, create a new field ‘Taxable’ with ‘Data type’ as ‘Two Options’ as seen in the screenshot below:
Here, we have kept the default value of “Taxable” field as “No”.
2. Now, add this field on Account Form and click on the ‘Field ‘ Select the ‘Controls’ tab and click on ‘Add Control.’ Then choose the Flip-Switch control as shown in the screenshot below:
Note: When you add the control, the “Visible by default” for the field sets to “No”. So once done adding the controls, need to again set the “Visible by default” value as “Yes”.
3. Click on ‘Save’ and ‘Publish’ the customizations. Once you save the record, log in to Dynamics 365 Mobile and Tablet app and open the Account entity record in which you have put the Taxable field. You will now see Yes/No represented as Flip switch as seen in the screenshot below:
4. This control also works on web client. To view Flip switch control on web client, navigate to Account entity and see the look of the “Taxable” field.
The Flip Switch control is helpful in situations where a user needs to show the simple Yes/No two options in an effective way. It adds an interactive visual element for users in Dynamics 365 web, Mobile and Tablet app!