Pay Rates for each day

Hi All,

Does anyone have an idea on how to make 1 variable equal another variable depending on the day?

I’ll give you an example,

I need to have the variable “Pay Rate” equal the different payrates for each day of the week.

So if its Monday, then the Var “Pay Rate” needs to be equal to var “MonPay” and once it changes to the next date the price changes.

Here is what i have in terms of veriables so far

Screen Shot 2022-03-05 at 8.33.10 am

Hi Archer,

This post might help you. Let me know if you need any more help. :slight_smile:

Hi James,

Yes I think this will be a huge help!

However, im not sure how to get the Arbitary Javascript app on to my Adalo Account.

Would love some guidence on how to do that.

Thanks,
Archer

Never mind, I just realized Adalo has a built-in function for this. You can do something like…

If Day of Week is Saturday > use $20 pay rate.

But i dont think I can actually have that automatically change the pay rate. Like what tool do I use to actually trigger that? Because i cant do it in the var “PayRate”

There’s probably a better solution, but for now, you can make it so when the user goes on the home screen you update the pay rate for that day. (create a property in the user’s database and then update that depending on the day)

To update the property when the user goes to the home screen, click on the home screen then go to “actions”.

But the Pay Rates are not static, they are dynamic. Therefore, I some how need to implament the following:

Var “PayRate”: if day = “Monday” let “PayRate” = “MonPay”
If day = “Tuesday” let “PayRate” = “TuePay”
Etc

Where “MonPay” has been set by user at previous stages.

Do you know how i would have this work?

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