Assigning Default Pricing Strategy and Switching Between Two Pricing Strategies in Adalo

I am building a bike ridesharing management app. In this app, operators can choose between two default pricing strategies. I have two database collections: one for Operators (called Operators) and another for the default pricing strategy (called Default Pricing). The Default Pricing collection has two records, each representing a different pricing strategy. I have set a relationship between the two collections as follows: many operators, one default pricing.

What I want to achieve:

  1. I want to assign the first pricing strategy (Pricing 1) to each new operator by default when they sign up.
  2. Later, I want operators to be able to switch between the two pricing strategies (Pricing 1 or Pricing 2) within the app.

The problem:
When I try to assign the default pricing strategy during the operator’s registration, I don’t have the option to choose between the two records in the Default Pricing collection. Also, when I create buttons to update the logged-in operator’s pricing strategy, I can’t pick between the two different pricing strategies.

What am I missing? I need help with selecting the correct pricing strategy for new operators and allowing them to switch between the two pricing strategies later on.

Hi @Tsvetan,

You need to use “single item list” approach for this.

Possible option - on the next screen after signup, you can add a button, convert it to a list of Pricing Strategies, filter this list by default pricing strategy. As a result you will have an access to “Current Pricing Strategy” inside this list (e.g. when adding an action on a button).
Then you can add an action on a button to assign a relationship.

An alternative option could be to use not a button but countdown timer with the same action.

Few notes:

  • making this on sign-up screen itself won’t work due to Adalo limitations
  • ensure that your post-sign-up onboarding flow is designed in a way that user visits the “autoassignment” screen only once.

Best,
Victor.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.