Hello
is QField able to execute actions on a layer, for example, open a URL?
If yes, how do we do it?
Thanks.
Best regards
Imported from GitHub discussion by @geguill on 2024-11-26T15:18:09Z
Hello
is QField able to execute actions on a layer, for example, open a URL?
If yes, how do we do it?
Thanks.
Best regards
Imported from GitHub discussion by @geguill on 2024-11-26T15:18:09Z
You can set a form where you put a link on or a field showing a link for each feature.
Imported from GitHub comment by @VxTedxV on 2024-11-26T22:35:50Z
essai.zip
Thanks for the answer, but I’m still stuck.
I created a project in QGIS named “essai” (see attachment), based on the layer “points_google”, on which I created 2 actions.
These 2 actions appear in the form.
When I open the project in QField (after packaging it with QField Sync or not), I don’t find the 2 actions.
Is this normal?
Thanks
Imported from GitHub comment by @geguill on 2024-11-27T13:24:54Z
hello,
could you give me an example of a project with a layer on which an action is implemented, which can be found on QField?
Thanks
Imported from GitHub comment by @geguill on 2024-11-28T12:52:38Z
I think you can find an answer here : #4615
Imported from GitHub comment by @VxTedxV on 2024-11-29T23:04:41Z
Clarification: QField does not yet support vector layer actions as configured within a vector layer properties dialog’s actions panel. And while a few action types will most likely never been implemented (windows/macos/linux command for e.g.), I can see the open URL ones as something that’d be worth implementing one day.
What VxTedxV was suggesting above is for you to not rely on vector layer actions but instead a text or QML widget within which you’d have hyperlinks or buttons to mimic actions.
Imported from GitHub comment by @nirvn on 2024-11-30T04:04:36Z
Thank you for this valuable information.
Kind regards
Imported from GitHub comment by @geguill on 2024-11-30T12:54:44Z
Thanks for your answer.
best regards
Imported from GitHub comment by @geguill on 2024-12-03T12:56:15Z
geguill , were you able to achieve what you aimed at doing?
Imported from GitHub comment by @nirvn on 2024-12-03T12:57:35Z
Yes,
thank you.
I created a QML widget that QField runs without problems
Imported from GitHub comment by @geguill on 2024-12-03T13:24:21Z
geguill , glad to hear this. Happy field mapping!
VxTedxV , thanks for helping others in this growing QField community!
Imported from GitHub comment by @nirvn on 2024-12-03T13:26:37Z