Buy Now
Sign in

more values for variable

alexatr , January 22 2020, 17:44
A
alexatr 14
January 22 2020, 17:44 #390860
i have the problem that i have to manage the values of an dropdowm-field.
if conditions 1 = value 1
if conditions 2 = value 2
but if condition 1 = true and condition 2 also true the dropdown should have value 1 and value 2 to choose (the real formular is much more complex)
How can i define in the "data builder 2" that the value is added to existing values?
I hope i explained the problem clearly enough - my english is not the best
healyhatman 9
January 23 2020, 09:40 #390866
 1
 Answer
Could do it in PHP. If it's a {var:} then you would do
$this->set('variable_name', $this->get('variable_name') + ['new_key' => 'new_value']);
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
A
alexatr 14
January 23 2020, 10:33 #390867
perfect - thx 4 this hint.