How To Create Type Of Poll Or Voting Feature

Hey Respected Koder

I Need To Know How To Create A Type Of Polling Or Voting Future In Kodular Application With Database.

Hoping Suggestions And Solution :star_struck:

Thank You :blush:

You should use slider…

1 Like

How…? :thinking:

I Think Its Not Possible With Slider

1 Like

I don’t know with database but let me try… I will share the aia for your referance if it would be possible…

1 Like

Thanks For That :kodular:

1 Like

You can do it easily with dynamic components extension by @yusufcihan using horizontal arrangements and labels

3 Likes

:thinking: :thinking: :thinking:

1 Like

First let him understand the simple logic.

1 Like

I Tried Offline

Take a Horizontal Arrangement (That Will Work As The Poll Bar; Set All It’s Properties Accordingly, But Make Sure AlignHorizontal Property Is Set To Left) and Place a Label Inside it (That Will Work As The Poll Option; Set All It’s Properties Accordingly).

Change Label Width Percent According to the Progress - Percentage.


But i will Suggest a Overlapped Label.
As if Label got Poll Text, if it is to a Certain Level of Progress (Below The Width Of Label Text), Whole Text will Not Display Correctly.


So, At Last i will Suggest
A Horizontal Arrangement (Progress Bar) inside a Horizontal Arrangement (Poll Bar) and a Overlapped Label (Poll Text).

4 Likes

With Your Suggestions And Procedures

I Was Created This

Screenshot_2020-11-22-16-06-53-86_bcf19fdaab5f528e1a140238641ca633
When CardView Click Set HA Width + 1

It Working But It’s Offline

How Can I Make Online

I Mean How To Store Every User Click In DataBase

I Did This

AFAIK you use Firebase DB

Suppose this is your Database -

Polls
----PollA
----------- A : 5
----------- B : 10
----------- C : 50
----------- D : 35

On Screen Initialization Call Values of Tag A, B, C, & D and when you Got the Values,
Set Progress of Your Poll.

And when a Option of Poll is Clicked (i Suggest to Call the Values Again or use Data Changed Event to Constantly Update the Poll) the Same Time Update the New Data To Firebase.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.