Hello,
this might be a bigger issue.
I want to implement a calculator in a view form (other field are set to readonly). The view form is a detail view that can be shown by clicking the link in a Chronoconnectivity List. The calculator in the fourth tab looks like this:
[attachment=0]Calculator.png[/attachment]
My target is that users who put in some numbers in the two upper field and press the button (type: button), get a calculated result written in the third readonly field. (If this is not possible, a message box would also be okay. But the user should stay on the same site.) For the calculation I need the two user inputs and four fields (Data[km_standard], Data[km_long], Date[time_standard], Data[time_long]).
I tried to add a "On button" action to try, but nothing happens. Moreover, I'm not sure how to access the fields in PHP Custom Code and how to add a value to the third field a display it.
Can you help me? Thanks in advance!
this might be a bigger issue.
I want to implement a calculator in a view form (other field are set to readonly). The view form is a detail view that can be shown by clicking the link in a Chronoconnectivity List. The calculator in the fourth tab looks like this:
[attachment=0]Calculator.png[/attachment]
My target is that users who put in some numbers in the two upper field and press the button (type: button), get a calculated result written in the third readonly field. (If this is not possible, a message box would also be okay. But the user should stay on the same site.) For the calculation I need the two user inputs and four fields (Data[km_standard], Data[km_long], Date[time_standard], Data[time_long]).
I tried to add a "On button" action to try, but nothing happens. Moreover, I'm not sure how to access the fields in PHP Custom Code and how to add a value to the third field a display it.
Can you help me? Thanks in advance!