Android Question 2 Checkbox, 1 EditText

vinzpogi

Member
From the title itself, can someone help me how i can show the two checbox value into only one edittext. For example

checkbox1 = Apple
checkbox2 = Banana

if i click checkbox1, Edittext.text= Apple. But if i click both, edittext while be. Apple,Banana.

Thanks

P.S The title of this thread can also be an example
 

DonManfred

Expert
Licensed User
Longtime User
You need to build this functionality by yourself.
 
Upvote 0

darencloud

New Member
Tried this but it doesnt show anything in the edittext when i click the checkboxes. When i use the Private sub ckbAction, it doesnt show anything. But when i use ckbApple_CheckedChange and ckbBanana_CheckedChange separately, it works but only shows Apple and Banana and not Apple, Banana

Update.. Just found out that b4a 6.30 is installed here in our school, will it only work at b4a 6.50?
 
Last edited:
Upvote 0

vinzpogi

Member
I tried using this code with numbers but it doesnt add up when i click both checkbox

Just an update. Haha after posting this, i got the code. I just added Else after txt = txt + "100" and placed txt = "100" there.
 

Attachments

  • abc.PNG
    abc.PNG
    13.5 KB · Views: 194
Last edited:
Upvote 0
Top