in2code-de / powermail_cond

Add conditions (via AJAX) to TYPO3 powermail forms for fields and pages
8 stars 23 forks source link

Support rule for country-field #89

Open neufeind opened 11 months ago

neufeind commented 11 months ago

In HTML the country-field is also just a regular select-field. But internally "country" is a separate field-type. I originally encountered missing support in powermail_cond 8.x (for TYPO3 v10). But even current releases seem to have a TCA that limits this functionality to certain field-types (Configuration/TCA//tx_powermailcond_domain_model_rule.php).

Could you please check if I'm right that also current releases don't support rules based on "country"? If so, please consider this a feature-request :-)

Workaround/patch for powermail_cond 8.x: It was enough to add "country" to the whitelist in TCA for start_field and to extend the shipped condition-JS to also listen to changes for class "powermail_country", since basically it's also just a regular select-field anyway.