Page 1 of 1

Insert "SESSION.kt_login_user" into textbox when "Completed"

Posted: 2012-04-20 22:14
by jlig
On my form I have two fields:
- Completed Date:___________ (this field has the Date Picker)
- Completed by:_____________ (this is a disabled field)

Any idea on how to use Interakt triggers/transactions/etc to Insert the "{SESSION.kt_login_user}" into the "Completed by" textbox when "Completed Date" field is filled in?

The logic is basically, If textbox1 (DateCompleted) is filled in, then automatically update textbox2 with "kt_login_user"

I'm checking on with a javascript function to possibly do this as well..

Re: Insert "SESSION.kt_login_user" into textbox when "Comple

Posted: 2012-04-23 17:43
by Fred
Two different methods to approach this.

Interakt way would be to have a "custom trigger" that will insert the value on update if a condition is met. In this case the date field is not empty.

The other method would be jquery.
Take a look at the change() function of jquery

http://api.jquery.com/change/