Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by 05admay

  1. 0

    JavaScript React.jsx: type is invalid, check the render method of `formik` (EXPO)

    Hi Guys, I've been working on this login page for an app but can't seem to work out what the issue with the code is. I believe it may have something to do with - const MyTextInput = ({ label, icon, isPassword, hidePassword, setHidePassword, ...props }) => { return ( <View>...
  2. 0

    JavaScript Javascript form calculation?

    This is the code that ended up working. that was hard :cry: :Rofl: Thank you very much for all your help JOhna, Really mean that!! if ([item-417_quantity] < 25000) { [price] = 250/[item-417_quantity] }else if ([item-417_quantity] > 25000) { [price] = 275/[item-417_quantity] }
  3. 0

    JavaScript Javascript form calculation?

    Hi Johna, This is what worked in the end, so I need to attach else if to duplicate the same calculation with different values? if ([item-417_quantity] < 25000) { [price] = 250/[item-417_quantity] }
  4. 0

    JavaScript Javascript form calculation?

    It's a car insurance form, so the slider i'm currently trying these calculations on is for the user to give a value of their car and the cost for insurance is depending on the value of the car. so cars upto 24,999 in value will cost $250. hope this makes more sense.
  5. 0

    JavaScript Javascript form calculation?

    Hi Johna, First can I say thank you so much for being so much help, it really is appreciated, your a diamond 😊 Close- if the teddy bears value is between 0 to 25,000 the price of the teddy bear is $250 total (maximum). The below code works for the first two in between values but each $1 of...
  6. 0

    JavaScript Javascript form calculation?

    Apologies for being a pain :cry::whistle: I've attached another screenshot, of a working calculation for multiplying two fields together, I hope this will help with understanding the structure :)
  7. 0

    JavaScript Javascript form calculation?

    item-417 is referring to the form item/field. _quantity Should be the amount stated within the field. If item-417 Quantity is <25000, then total price is 250
  8. 0

    JavaScript Javascript form calculation?

    The Item Number doesn't turn green and didn't work.
  9. 0

    JavaScript Javascript form calculation?

    Yes, something like that but unfortunately it didn't work, I even tried this code as well, as I thought it may be to do with the form values but still not luck. if (item-417_quantity < 25000) { [price] =([item-417_price])= 250; } else if (item-417_quantity < 30000) { [price]...
  10. 0

    JavaScript Javascript form calculation?

    As you can see in the screenshot, my current code is making each 1 quantity £250 Upto 24,999 in that top slider but needs to be $250 total, currently in the screenshot, its working out at 10,000 X $250
  11. 0

    JavaScript Javascript form calculation?

    Hi Johna, Sorry. The price of the service is $250. upto a value of <24,999, then increases to $275 from between >25,000 upto <29,999. I need this calculation in java, currently the calculation i've used, stops at 24,999 like i want but each 1 equals $250. Hope this makes more sense :)
  12. 0

    JavaScript Javascript form calculation?

    Hi Guys, I need help with this calculation, im designing a form for a client that needs a MAX PRICE between two values. I'm using the javascript below but this makes each quantity 250, I need it so its a maximum of 250 Upto 24999 and then ill do another value between 25000 up to 29999 and the...
Back
Top Bottom