I am creating an app to calculate the overtime payable based on a persons salary.
There are 10 salaries, each one is different based on the increments you get for tenure with the company.
I’ve created an option set for Salary 1 through 10, and each one has an attribute of type “number”, which displays the equivalent hourly rate.
I have a blank text box next to it. I want to be able to click the dropdown, and have the corresponding hourly rate populate in the next text box but I cannot figure this out.
The intention here is to then use code to work out hourly rate*payable rate (e.g. double pay/time and half)*hours worked… And then ultimately run a rough calculation to show tax paid and money earned but it relies on that salary figure being available.
There’s definitely something I’m not doing correctly. I can’t seem to get the dropdown to point to the text box and when I can I get errors in selecting this solution
@andrew.allen754, in the text element, can’t you reference the dropdown’s value and then select the hourly rate attribute? Share some screenshots of your setup.
You clicked on the Modify attributes link for each option and entered the attribute, right? If so, it seems like it should be working, so maybe consider sharing a read-only link to your editor so we can poke around under the hood.