Closed chanteclair12 closed 3 years ago
@chanteclair12 , can you share a test project?
@nirvn, QField offline project can be suitable ?
I manage to display the right svg file but it is necessary to save the modifications in the form and to consult it again. Not very practical. Do you know if the relationship between the choice in the list and the display can be more dynamic?
@chanteclair12 , yes, offline project is fine.
I have attached the project to my post. Thanks for you help.
Currently, the "live" update of the default value while editing is not possible in the normal mode. If you want to have your form updated during editing, you would need to enable the "Fast editing mode". This mode means, that all your values are stored directly after you changed them - be aware there is no "discard changes" option.
To enable it, go to the settings in QField:
Edit: I tested your project and with fast editing mode it works for me.
Thanks for this answer. Have a nice day
Does it mean that attributes can not be modified after ?
It can be modified after.
Normal mode on editing feature:
Fast editing mode on editing feature:
PS. on creating new feature there is a trashcan icon, this would "delete" the feature in case you don't want to have it in the end...
Thank you for yours explanations. It's clear now.
Hello everyone, I have a Qgis/Qfield project with a parent table with points and a simple children's table. Each table has a form and the parent table displays the children form. In the children form, I want when attribute 1 is equal to value "D12" for example, then attribute 2 displays the corresponding svg "D12.svg", contained in an SVG folder at the root of the folder containing the Qgis/QField project.
Reproduction Steps:
Add a point layer and make a form with one tab, to catch poles position in the street.
Add a table with a form with one tab, to describe signs hung on poles. An attribute is used to choose the panel model. A second attribute has an expression (CASE WHEN "attribute 1" = 'D12' THEN 'D12.svg'...END) in the default value section. Here, i have tried to put several differents things in the condition :
Make a relation between these two tables in the Qgis project properties.
Include the simple table form in the point layer form.
Generate the QField project with QFieldSyn plugin.
Expected behavior:
Having the good svg symbol displayed depending the choice made in the first attribute
Observed behavior:
If a point exists from Qgis project, a symbol is displayed but in edit, it doesn't change. With a new point, no symbol displayed.
Screenshots and GIFs QGIS behavior
QField behavior
QField version: 1.8.4 Selma (7b5255 v1.8.4)