|
|
Sergey Kornilov admin 10/24/2013 |
|
Try to use PHP syntax, there is plenty of code samples in the manual. if ($values["PhHome"]== "") |
|
|
N
|
nti author 10/25/2013 |
|
Thank you Admin for reply.
end ifwith if scripts ? |
|
|
S
|
stiven 10/25/2013 |
|
you can try this? maybe it works In need of "Before record added" example... Table: tblClients Field: PhHome Conditions: if field is left blank, insert: Unknown Bad code example below:
|
|
|
N
|
nti author 10/25/2013 |
|
[quote name='Stivens' date='25 October 2013 - 05:44 PM' timestamp='1382741081' post='72522']
|
|
|
N
|
nti author 10/26/2013 |
|
Events: Before record added |
|
|
|
Sergey Kornilov admin 10/26/2013 |
|
The only problem I can see is an incorrect syntax in your original code sample. There is no such thing as "end if" in PHP. All suggested code samples are correct. |
|
|
N
|
nti author 10/26/2013 |
|
Thank you Sergy for reply. |
|
|
|
Sergey Kornilov admin 10/26/2013 |
|
It just doesn't make any sense to me. If you require user to enter a unique value - you should not allow leave this field empty. We do not have a built-in "Do not allow duplicates but allow empty values" option. |
|
|
N
|
nti author 10/26/2013 |
|
Thank you for reply.... It just doesn't make any sense to me. If you require user to enter a unique value - you should not allow leave this field empty. We do not have a built-in "Do not allow duplicates but allow empty values" option.
|
|
|
|
Sergey Kornilov admin 10/26/2013 |
|
We will consider adding this is a feature. For now you need to use your own validation per suggested article. |
|
|
N
|
nti author 10/26/2013 |
|
For novice php users like me.... Here is the article that explains how to build your own validation routine: http://xlinesoft.com...ro-applications What you looking for is "Server-side validation" section.
|
|