cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KJC
Helper I
Helper I

Event Sign up Help

Hi, 

 

I am new Power Apps and was wondering if anyone could help with the following.

 

I need to create a sign up form for event sessions and the options within those sessions need to have limited spaces available - lets say 15 places. Once all spaces available have been reached it either removes the option or stops users from selecting it. Would anyone be able to help? 

 

For Example:

Session One Options

  • Art
  • History
  • Science

Session Two Options 

  • Art
  • History
  • Music
  • Science

Session Three Options

  • Art
  • History
  • Music
  • Maths

 

Many thanks

1 ACCEPTED SOLUTION

Accepted Solutions
rimatos
Community Support
Community Support

HI @KJC ,

 

This would depend on your internal logic of the app and on how you store the data, but one thing you could try would be to set a variable OnStart of the app, and use it as a control variable.

 

You can use the Set function in order to create a variable and insert data into it as such:

 

Set( VariableName, Value )

  • VariableName - Required. The name of a global variable to create or update.
  • Value - Required. The value to assign to the context variable.

 

The value you could retrieve from you database (e.g. Common Data Service), and increment it whenever a new option is chosen on the form.

 

If you choose to manage it this way, remember that you would need to update the value in the database after you finish, so you don't lose the data. You can accomplish this using the Patch function as an example.

 

 

Let me know if this answer helped you in any way! 

 

Regards,

Ricardo

View solution in original post

1 REPLY 1
rimatos
Community Support
Community Support

HI @KJC ,

 

This would depend on your internal logic of the app and on how you store the data, but one thing you could try would be to set a variable OnStart of the app, and use it as a control variable.

 

You can use the Set function in order to create a variable and insert data into it as such:

 

Set( VariableName, Value )

  • VariableName - Required. The name of a global variable to create or update.
  • Value - Required. The value to assign to the context variable.

 

The value you could retrieve from you database (e.g. Common Data Service), and increment it whenever a new option is chosen on the form.

 

If you choose to manage it this way, remember that you would need to update the value in the database after you finish, so you don't lose the data. You can accomplish this using the Patch function as an example.

 

 

Let me know if this answer helped you in any way! 

 

Regards,

Ricardo

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,528)