Visibility based on blank field
Posted: Wed May 01, 2019 5:12 pm
Hi all, I've gone through all of the prior postings in regards to the visibility conditions and I was able to make several of the codes work for our company, so a big THANK YOU for all that asked those questions! Python is not my first language (or second, not even in the top 10), but I've been able to piece together codes from what others have posted. Forgive me if I'm using incorrect terms.
TL:DR Is it possible to set a visibility condition based on if a field is blank?
We have two doc sets -- We'll call them "Commitment Docs (REG)" and "Commitment Docs (STD)".
At first I was looking for the set "Commitment Docs (STD)" to be visible only if a field in SoftPro equals "STD". We picked a random field that we were not using and was able to get it to work with the following code:
return str(Order.Settings.PublishOnlineData) == 'STD'
However, I'd also like the other set to be hidden/invisible if that SoftPro field = "STD". The way I was trying to make this work is to set a visibility condition on BOTH document sets where one is...
return str(Order.Settings.PublishOnlineData) == 'STD'
and the other is...
return str(Order.Settings.PublishOnlineData) == 'null or blank'
Any ideas?
TL:DR Is it possible to set a visibility condition based on if a field is blank?
We have two doc sets -- We'll call them "Commitment Docs (REG)" and "Commitment Docs (STD)".
At first I was looking for the set "Commitment Docs (STD)" to be visible only if a field in SoftPro equals "STD". We picked a random field that we were not using and was able to get it to work with the following code:
return str(Order.Settings.PublishOnlineData) == 'STD'
However, I'd also like the other set to be hidden/invisible if that SoftPro field = "STD". The way I was trying to make this work is to set a visibility condition on BOTH document sets where one is...
return str(Order.Settings.PublishOnlineData) == 'STD'
and the other is...
return str(Order.Settings.PublishOnlineData) == 'null or blank'
Any ideas?