I am really sorry, but I cannot follow what you are describing.
usr338 I have multiple field with a small button nearby them.
What do you mean by this? Do you have a relationship input field (eg. attribute field, type n:m) with multiple values? Or do you have multiple, different fields that each have a button next to them?
usr338 or select value from a selection list by clicking on small button near field.
How does a user select a value by clicking on a button? A button in this context would execute a function I assume. What does the function do?
usr338 This selection list actually is a relation variable that act as data source for all input field.
Sorry, no idea. How does a variable act as a data source? Are you using the variable as a filter somewhere? Do you access it in a function?
If you mean that you need a function to be called when a variable get´s updated - you can use the field option "Function on value change" to execute a frontend function if the variable is used as relationship input.
usr338 when user click the button, i need to know which field value will be replaced by value in selection list so somehow i have to pass id of filed to event handler of button to set a variable that act as pointer to current field (let name it id variable). then show the selection list.
When a user clicks a button field, you are in control of the function being executed. In that function you have access to all field values. What do you mean by "selection list" here? If you mean the variable as relationship input, you can access the current variable value inside your frontend function via placeholder.
Please try to keep to terms used in r3 to describe your request. There are no "selection lists" - there are relationship input fields (eg. fields displaying relationship attributes) or variables presented as relationship inputs. We do not have "event handlers", we have frontend functions being executed in different contexts (form functions, button function, function call on field value change, etc.).
If we can use the same terms, it should be simpler to understand each other.