Auto change/fix value (convert to decimal)

Hello everybody

I have this form for grading, the values should be decimal from 1.0 up to 7.0
I need a formula to change de value in case one teacher writes 56 so it will become 5.6, so that "if the number is bigger that 10 and less than 70, that value should be divided by 10
I made an action
set the values of some columns in this row
FIRST GRADE = IF(AND([FIRST_GRADE] >= 10 [FIRST_GRADE] <= 70, [FIRST_GRADE] / 10, [FIRST_GRADE])
I set the action on form submission but nothing happends. Any ideas?

Solved Solved
0 5 206
1 ACCEPTED SOLUTION

Good news, I manage to do it using the action in a workflow. I ise โ€œchange dataโ€ on the grades table for any update> do this: action โ€œdecimalโ€(the action i made before)


THANKS!

View solution in original post

5 REPLIES 5

Steve
Platinum 4
Platinum 4

Please post a screenshot of the action configuration, and a screenshot of the complete expression.

Sure



IF this condition is true:
โ€ฆALL these statements are true:
โ€ฆ1: (The value of column โ€˜F1โ€™) is greater than or equal to (10)
โ€ฆ2: (The value of column โ€˜F1โ€™) is less than or equal to (70)
THEN use the value of:
โ€ฆ(The value of column โ€˜F1โ€™ / 10
ELSE use the value of:
โ€ฆThe value of column โ€˜F1โ€™

Column F1 is of type Number, so it will never have a decimal point or fractional part. Youโ€™ll need to change the column type to Decimal to get a decimal value.

3X_b_b_bbe2a89048a16d416bd33add64fa1d3973215e0b.png

Thanks Steve for your help. I tried that before, i was using type decimal and now i realize what the problem is. The action workโ€™s fine on form view, but it doesnt work in the quickedit, at least that is what i am experiencing.

Good news, I manage to do it using the action in a workflow. I ise โ€œchange dataโ€ on the grades table for any update> do this: action โ€œdecimalโ€(the action i made before)


THANKS!

Top Labels in this Space