Jump to content
  • 0

use button to refresh calculated field


DesiLogi

Question

Hello,

Is there a way to refresh a calculated field when a button is clicked?  I have a field set to 'Calculated Field' in a submission form that references a couple other fields that themselves are updated with a button's js function. When you don't manually (type in) update a field then the calculated field won't show any changes. So when my button's function runs and Field1 gets a timestamp, the calculated field that uses Field1 doesn't refresh. It does refresh if I type in the time/date to Field1. 

I'm need to show the refreshed value in the calculated field before it is submitted. Any help would be appreciated!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello, are you really on a submission form?

As I check, you can only have Calculated values on a submission form and they real time responsive. 

As for the calculated fields,  I think they perform their calculation during on load and if you refer a field from it, it will gather those information  directly from the table datasource thus it will not response/change value unless the changed values on the fields  are saved on the tables first. 

You may want to try calculated values. You can set a field to became a calculated value on its form element. 

I hope it helps

Link to comment
Share on other sites

  • 0

Hi Sherif,

It's been awhile since I posted this so I don't remember exactly which submission form I was working on (my app is huge with 500 datapages). However, I believe what I had to do was use js to fill that field, based on what the other fields were. So the js the button ran updated the first 2 fields and then, after that, updated the 3rd field (set to a regular text value instead of a calculated value). Hope this helps-- 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...