Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set zero previous row cell #52

Open
StefanoServiddio opened this issue Oct 12, 2017 · 2 comments
Open

set zero previous row cell #52

StefanoServiddio opened this issue Oct 12, 2017 · 2 comments

Comments

@StefanoServiddio
Copy link

StefanoServiddio commented Oct 12, 2017

Hi,

I'm using dynamic forms with three rows. When I set a value in a row, a cell of previous row sets its value to zero.
Can you help me, please?

<td><input class="form-control input-sm text-right" data-cell="A'+i+'" data-format="0"></td>\ <td><input class="form-control input-sm" data-cell="B'+i+'"></td>\ <td><input class="form-control input-sm text-right" data-cell="C'+i+'" data-format="$ 0,0.00"></td>\ <td><input class="form-control input-sm text-right" data-cell="D'+i+'" data-format="0[.]00"></td>\ <td><input class="form-control input-sm text-right" data-cell="E'+i+'" data-format="0,0[.]00 %"></td>\ <td><input class="form-control input-sm text-right" data-cell="F'+i+'" data-format="$ 0,0.00" data-formula="D'+i+'*(C'+i+'-(C'+i+'*E'+i+'))"></td>\

@sadsocket
Copy link

Did you ever find a solution for this? I've played with the data-format a bit and as far as I can tell Calx is truncating the number whenever it finds a non numeric character.

So an input that says $1,000,000 gets truncated to 0 on update/calculate.
And input that says 100,000 gets truncated to 100 on update/calculate.

@digitalredefned
Copy link

Having the same issue. My interim fix was to create hidden form fields that had the value without cell formatting. Used jquery keypress to update the hidden fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants