When adding a new element in the form designer, there should be a way to specify permissions rules (Permitted for Reseller? Permitted for client?)
For example, you may want to have exclusive features for the administrator only in the website hosting plans or website adding form (Text input fields or checkboxes, etc) . Right now adding a new element in the website adding form includes also the reseller by default, which might no be what one have in mind... Or I have missed something?
I did a fast view and saw a lot of references like this
Code:
if (something)
$doc->deck[0]->elements[17]->visible = 0;
I thought using numeric indices would make very hard to "move" a new element ip in a given form? Things could break...
In other codes I see this, which seems to be better
Code:
getElementByName(name)
I did move my element up, so I guess the element index changes all indices by 1, down the form
But the older code addresses the fields by ID. If you moved your field up, you will either have to change the ID's for all elements that where now on another position or replace the IS's by the getElementByName syntax which will help us in future.
Recent comments
19 hours 27 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 16 hours ago
2 days 1 hour ago
2 days 2 hours ago
2 days 5 hours ago
2 days 10 hours ago
2 days 10 hours ago