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

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,518)