Create a text input if user clicks on button

I need help to create a text input whenever the user clicks a button or text.

Hello, welcome to the forum. Could you give me more information so I can guide you?

Hi Santiago,
Let me try to explain with an example: I want to split my bill with my n friends. If I click on the (+) button, it can create an input field to add a friend’s name and amount
Little bit like this

Hi there!!

First of all the “+” button must be in a list which contain the users data.
After that, you must link the button to a new modal and place a form in to the modal.
The form must be set on the correct collection and set on “Update XXXX Collection”.
Then, the submit button must have an action call update and also a link to “back” to make it real and updated, closing the modal and showing the new friend collaborating.

Hope it helps!
Regards
Jare Ramirez

1 Like

Great, there are several ways you can do it.
The important thing is to know if the app is closed to your friends or if any user can use it.

For example, if it’s closed and your friends have access to the invoices, you can do it like this.

You have the user database, Bills, and Income.
A relationship where an income corresponds to a friend and the income corresponds to an invoice.

  1. Create a Bill.
  2. Add a list of Bills to the home page with the total amount due and a button that says “Enter Invoice.”
  3. The button performs an action that takes the user to a page with a form (create invoice), or you can design it with an input and a button.
  4. The action performed by the form or button is Create an invoice (current bill), and the logged-in user was the one who uploaded it.
  5. In the home list, you can create a counter for the total due and total paid (current bills > income > sum).
  6. On the Enter Invoice screen, you can also have a simple list of invoices > current bill, and enter the user’s photo, total paid, and payment date.

This way, each user can also have a history of their invoices.

I used this system in some soccer field reservation apps where each user could enter payments!

Then you can play around with the design, components, etc.

I hope this idea helps.

If you don’t understand, let me know! Good luck!

Thanks man! For providing the hint , But can you explain about Counter part . I am new to adalo and this no code thing.

Hi, I made a mini video with some things, see if it helps you get ideas… it won’t let me send it here, but if you send me your email, I’ll send it to you.

Hi Santiago,
here is my mail id khurafati96@gmail.com. Thanks Man for helping out

1 Like