OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
php show field (0 viewing) 
Go to bottom Favoured: 0

Php show field

hansel (User)
Gold Boarder
Posts: 240
graphgraph
User Offline Click here to see the profile of this user
php show field 1 Year, 9 Months ago
Karma: 0  
In a rent request form I have a text field 'delivery location' which shouldn't be shown if the user selects the first value of the {|pricefield_select_list_132|} in the "show instant layout" of the same entity.

Example:

In the 'add rent request form' i have the text field 'delivery location'
I type into the php show field of this text field:
if ({|pricefield_select_list_132|}[0]->data) {
return true;
}
else {
return false;
}

But I always get an error
Logged Logged
The administrator has disabled public write access.
VlaDOS (Admin)
Admin
Posts: 133
graphgraph
User Offline Click here to see the profile of this user
Re:php show field 1 Year, 9 Months ago
Karma: 3  
Hello. This system does not work with price fields, as they are dynamic fields. If you want it to relate to the parent instance, the query should be much more complex. If the request form has a look other than "Button with redirect", it's easier and better to use Javascript to hide or show the field you need.
Logged Logged
The administrator has disabled public write access.
Go to top
»