Jump to content

Conditional Fields on the Get All Sites Data Query not working


samwoo

Recommended Posts

Hello,

I have an issue with the Get All Sites Data Query. I am trying to show a conditional field based on the response given but it isn't doing anything.  See replication steps below

1. Data Query to get all sites
1170201929_1-DataQuery-GetAllSites.png.e77b8eaf7d46200156ec93c6c8eeda86.png

2. An example site i want to show conditional field on 
131501552_2-SiteDetails.thumb.png.6471be0f2b5ca4d68c8f1eca80a9f585.png

3. Conditional Field Flags and Condition
989177563_3-ConditionalFieldforquestiontobedisplayed.png.40b61bfba44e7efb4c0747067b259b8a.png

4. Question to be displayed based on the above condition
270574585_4-Questiontobedisplayed.png.b0af5df4368559d55005cd551fedade0.png

5. Observe the form, it's not showing the conditional field
1908139247_5-ConditionalFieldnotshowing.png.1198df115d223f7983579db048ce0735.png

 

I hope this can be resolved. 

The reason for doing this is that I could potentially trigger another ticket to the Hornbill Service, if someone selects an "Other" site that doesn't exist and investigate whether the information they've given in the text box is a new site that needs to be added to the list in Hornbill.

Thanks,

Samuel

Link to comment
Share on other sites

Hi @samwoo,

To make any reference to site you need to use site ID - which unhappily it's quite hard to fine as ATM it is only exposed as part of the URL (you need to open any site details in admin).
We did update to admin part and ID will be exposed as first property above site name - should be available with next admin release. Hopefully this will help you to solve the issue.

Thanks,
Miro

  • Like 1
Link to comment
Share on other sites

Thanks @Miro, I will keep an eye for that update.

Are there any plans in the future to allow the actual name/values to also be compared against in the future?  (for all data queries, not just Sites) 

I only ask, because in this context, if I had multiple "Other"  sites based on organisation it would be a lot easier to search where the text contains the word "Other"  instead of having to manage this manually per PCF that uses this; if other internally managed organisations come along. 

That being said because I am doing this for 3 Organisations at the moment, so I am happy with using the Site I'd for the moment. 

I also feel like I've asked this very same question before... And I've also gotten the same answer before... (in terms of how to use conditions based on the site data query) 

Many thanks! 

Samuel

Link to comment
Share on other sites

Currently we are working on some changes in pro capture - there would be more possibilities as one field could return more values (like id and name) but this is still in alpha.
It won't happen now but it is something we are aware and working on.

Thank you,
Miro

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...