cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KJC
Frequent Visitor

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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