Good day. I'm trying to set up a field in the survey form designer, that will automatically calculate corrected plot radius for the survey team in field, after the slope angle has been determined and entered into the appropriate field. Is this possible and how do I go about it?

plot_radius / Math.sqrt(Math.cos(slope_angle * Math.PI / 180))

asked 18 hours ago

Ten%20Trees%20Squared's gravatar image

Ten Trees Sq...
111
accept rate: 0%


Dear user,
If your survey has an attribute with the plot radius called "plot_radius" and another one with the slope angle (in degrees) called "slope_angle", the expression you typed will work as it is.
Create a new read-only attribute, called for example "plot_radius_adjusted" and use that expression as a default value expression (define it using the "Advanced" expression editor), following these steps:

  • Create a new decimal attribute and mark it as read-only:

alt text

  • In the expression editor that appears, click on the "Advanced" button on the top right corner:

alt text

  • Copy and paste the expression in the text input:

alt text

  • Apply the changes and if the expression is correct, the result should be this one:

alt text

Many thanks,
Open Foris Team

permanent link

answered 17 hours ago

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
5.4k119
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×114

question asked: 18 hours ago

question was seen: 12 times

last updated: 17 hours ago