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

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
jlig
Posts: 35
Joined: 2010-07-09 16:17

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

Post by jlig » 2012-04-20 22:14

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..

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

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

Post by Fred » 2012-04-23 17:43

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/

Post Reply