[SOLVED] Â How to make tooltip conditionally appear |
9/9/2017 10:05:57 AM |
PHPRunner General questions | |
E
exora author
I am new in programming and in phprunner. I am using phprunner 9.8 Build 29465. |
|
![]() |
jadachDevClub member 9/9/2017 |
Maybe this can point you in the right direction: https://xlinesoft.com/blog/2017/07/25/using-field-events/ |
E
|
exora author 9/9/2017 |
Maybe this can point you in the right direction: https://xlinesoft.com/blog/2017/07/25/using-field-events/
|
![]() |
jadachDevClub member 9/9/2017 |
Thank you for quick response. I have read the link as I mention in my posting. But I don't understand about step 3 (Client After). I make code: Client Before: params["value"] = this.getValue(); // default sample Server: $result["owner"] = "select fullname from t_property where fullname='".$params["value"]."'"; Client After: if(result['owner']) { $result["message"]="It seems the same owner" $("#fullname_tip").remove(); $("input[id=value_fullname_1]").after("<div id='fullname_tip' style='margin-top: 10px; color: blue;'>"+result["message"]+"</div>"); } That doesnt work. It may be simple but honestly I just guess the code. I am new in programming
Client Before: |
E
|
exora author 9/10/2017 |
I was able to do this by using field events, however I use C# not PHP. So the server part will need to be translated from C# to PHP. The client before and client after will be the same. In my scenario, I want users to know if the Job Title entered exists or not. Client Before:
|