Select a record from a repeating group to populate an input group

Hello there!

I’m building a crypto tracking app and when users click on a button, a popup window appear with a repeating group listing cryptocurrencies (see below).

The idea is that users should be able to click on a cryptocurrency from that repeating group and then they are brought to the next popup page where they can fill the rest of the information. The crypto they selected should appear on a field, ideally read-only (see first field in the screenshot below). I don’t know how to make a record from a repeating group populate an input field when we click on it.

When they finally click on the button “Add cryptocurrency”, it populate a Data Type using all the information from the form.

Hi @CrypTechy, I hope to find you well.
I did a test with a repeat group of my users, here is an important point, for the selection to work you need to place the repeat group field inside a group, because in the group you will have the possibility to enter the workflow (to create the set state). Test with an input receiving the selected field, you will need to use a custom state. Below is a print showing the selected field in the input but read-only in the field that receives the selected field. I sent you the prints.



Hi @krenkel

Thanks for your answer!

What do you mean by “the repeat group field inside a group”? Currently I have the following element tree structure:

This is a reusable element I put in a popup item. The group “Group Select Cryptocurrency to add” is the popup page containing my repeating group. The “Group CMC API Call Listing data” is inside the repeating group cell and it contains the text displaying the cryptocurrency symbol.

Do you have the repeat group receiving the data, right? This element that shows the bitcoin currency to you is this element that you need to right-click on and create a group for this element, for example bitcoin and it is a text type, this element receives a group, which is inside the repeat group, I don’t know if I’m being clear, it is here in this created group that you will enter the workflow to create the set state.

hey @CrypTechy Why do you need the info in an input if it’s going to be disabled? :thinking:
isn’t it easier to just use a text element? or is it going to be enabled again at some point to allow users to change the currency by typing a name instead?

Hi @hanan1

I initially tried with a text element but I was not able to add its content to a Data Type. Maybe I missed something…

There is a Data Types called “Cryptocurrency” and when users click on the button “Add cryptocurrency”, it create a new record in the database with the data entered by users.

Hi @krenkel

Isn’t the group “Group CMC API Call Listing data” the group containing the text element? If I right-click on the text to group it, it creates a same group as “Group CMC API Call Listing data” (see screenshot above), which to me is redundant. To my understanding I should then set state on that element, I am right?

@krenkel

I finally succeeded! I actually did not understand fully the custom states but all good now!

Hi, @CrypTechy, that’s great that it worked. And yes, SET STATE is a mystery, but it works spectacularly, doesn’t it? : ) Good luck with your project.

happy that it worked for you! but you can reference an item in a text element just like a input so I didn’t get it. But anyways, glad it’s working.