Search found 200 matches

by enishemed
24 Feb 2021, 12:16
Forum: Discussion
Topic: Help with auto focus
Replies: 2
Views: 42

Re: Help with auto focus

To focus and open the dropdown menu use this code //to auto focus dropdown field $(document).ready(function(){ $("#ajax-modal").on('shown.bs.modal', function(){ $(this).find('#fields_299').focus( ); }); }); //to open the dropdown menu $(document).on('focus', '.select2.select2-container', function (e...
by enishemed
24 Feb 2021, 11:39
Forum: Discussion
Topic: Help with auto focus
Replies: 2
Views: 42

Re: Help with auto focus [SOLVED]

I have solved the problem using the following code

Code: Select all

$(document).ready(function(){
    $("#ajax-modal").on('shown.bs.modal', function(){
        $(this).find('#fields_299').focus();
    });
});
by enishemed
24 Feb 2021, 11:23
Forum: Discussion
Topic: Help with auto focus
Replies: 2
Views: 42

Help with auto focus

Can anyone help me how to auto focus dropdown field in modal from using jQuery?

When loading the modal form, I want the dropdown field to auto focused.

I try to use the following code, but it does not work.

Code: Select all

$("#fields_299").focus();
thanks in advance.
by enishemed
18 Feb 2021, 21:14
Forum: Discussion
Topic: Last Record
Replies: 4
Views: 85

Re: Last Record

You can use Ajax Request field and the following code. It is tested and works. $query = db_query("select field_2318 from app_entity_159 order by id desc limit 1", false); if($item = db_fetch_array($query)) { $final_km = $item['field_2318']; } else { $final_km =0; } echo $final_km; $form_field_value ...
by enishemed
18 Feb 2021, 20:12
Forum: Discussion
Topic: Last Record
Replies: 4
Views: 85

Re: Last Record

I think you can use mysql query field
by enishemed
16 Feb 2021, 14:49
Forum: Discussion
Topic: Sub-sections in Menu configuration
Replies: 2
Views: 53

Re: Sub-sections in Menu configuration

If you have only one entity in sub-section, the sub-section is not displayed.
by enishemed
16 Feb 2021, 10:56
Forum: Discussion
Topic: Hour Difference
Replies: 2
Views: 62

Re: Hour Difference

I have two fields. 1. Hour Difference - hours difference field 2. MySQL Formula - mysql formula field Both of them have the same result. They are calculating the service hour. And I have a Pivot Table PRO report. If I use MySQL Formula Field, I can use SUM of the field, If I use Hour Difference, I c...
by enishemed
15 Feb 2021, 12:38
Forum: Discussion
Topic: Hour Difference
Replies: 2
Views: 62

Hour Difference

Dear Sergey,

I could not use the Hours Difference field in Pivot Table PRO as SUM of the field. Is it normal?
by enishemed
08 Feb 2021, 19:05
Forum: Discussion
Topic: A QUESTION ...
Replies: 3
Views: 109

Re: A QUESTION ...

It does not save the result in database
by enishemed
07 Feb 2021, 12:16
Forum: Discussion
Topic: Birthday Month
Replies: 2
Views: 73

Re: Birthday Month

I think you can create calendar report