How To Use a Form Within a Repeat Region

I have a data type lookups with lots of user defined values that then appear within dropdowns in my app. I’m creating an environment where the user can manage these.

So an example of some lookup values would be:

type       value
==================
gender   male
gender   female
gender   transexual
region   north
region   south
region   east
region   west

I’m thinking about this kind of structure, where I just list the lookup values within a form and an input in a repeat region:

<button ADD GENDER>
<repeat get_lookups.data.lookups.where(type=='gender')>
   <form update_lookup>
      <input lookup_name>
      <submit button>
   </form>
</repeat>

Can I put a form within a repeat, or will this not work?

If not, should it work with a Server Connect to a get server action?

Best wishes,
Antony.

Community Page
Last updated: