Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified documentation/assets/images/live_default1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/assets/images/live_default2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 19 additions & 18 deletions documentation/how-to/advanced-how-tos/live-default-value.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,33 @@ tx_slug: documentation_how-to_live-default-value

# Live default value

QField is supporting the "live" updating of default attribute value
when editing features.
QField is supporting the "live" updating of default attribute value when editing features.
This means, when changing one value in an attribute another automatically adjusts.
Examples for this could be species names that are both recorded with the original species name and the common name.

## Configuration
:material-monitor: Desktop preparation
!!! Workflow

To make it work, the attribute has to be set up with another attribute
dependency.
## Configuration

An example of attribute dependency settings
:material-monitor: Desktop preparation

For an *image*:
In this example, the image will automatically update when a different plant_species is chosen.

!![live default value image](../../assets/images/live_default1.png)
1. Direct to the layer properties, where you want to set the updating value field.
2. Go to the 'photos' field and add the following expression into the default value.
3. Toggle the *apply default upon update*.

For a *value relation*:
!![live default value image](../../assets/images/live_default1.png,700px)

!![live default value relation](../../assets/images/live_default2.png)
4. Go to the plant_species field where your *value relation* is set as a widget type.
5. Add the following expression as shown below into the default value.

## Usage
:material-tablet: Fieldwork
!![live default value relation](../../assets/images/live_default2.png,700px)

"Live" default value is updating the default attribute values in real time when
editing features.
6. Press Ok and save.

In the video below there is an example of "live" default value updates
when editing features on QField.
!!! Example

![type:video](https://player.vimeo.com/video/607220411)<!-- markdown-link-check-disable-line -->
In the video below there is an example of "live" default value updates when editing features on QField.

!![Live_Default_Value](../../assets/videos/live_default_value.webp)
16 changes: 9 additions & 7 deletions documentation/how-to/advanced-how-tos/variables.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@ When you access the variables list in QField ( *Side Dashboard* > *Settings* > *
### Variable configuration
:material-tablet: Fieldwork

To configure a application-specific variable, follow these steps:
!!! Workflow

1. Open **Settings** in QField.
2. Navigate to the **Variables** tab.
To configure a application-specific variable, follow these steps:

Here you will see a list of all variables currently applicable to your project.
To add a new variable:
1. Open **Settings** in QField.
2. Navigate to the **Variables** tab.

1. Click on *Add a new variable* at the bottom of the variable list.
2. Enter the name and value for your new variable and save.
Here you will see a list of all variables currently applicable to your project.
To add a new variable:

1. Click on *"Add a new variable"* at the bottom of the variable list.
2. Enter the name and value for your new variable and save.

### Useful Examples

Expand Down
2 changes: 1 addition & 1 deletion documentation/how-to/project-setup/pictures.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ With this functionality you can add detailed and formatted information when taki

Navigate to the *Project* > *Properties* > *QField* > *Attachments and Directories* sub-panel and click on "Settings" for "Customize image stamping details".

!![](../assets/images/accessing_image_stamping_setting.png, 600px)
!![](../../assets/images/accessing_image_stamping_setting.png, 600px)

You can add the following settings:

Expand Down