Automatically fill in field based on data from table rows


hello,

users in our organization have complete number of different forms when accident occurs. creating .pdf combines these fomrs one, first portion being data input section user inputs data , populates other sections (pages of form) can later saved , printed.

the data input section contains subforms tables. tables have row has "add new item" , "delete item" buttons.  rows have dropdown list fields.

i create field automatically filled in values dropdown lists, including values new rows added using 'add new item' button.

any assistance in regard appreciated.  first time on forum, apologize if have not been clear.

thank you.

this pretty complicated. you'll have use scripting , i'll tell how i'd approach javascript.

 

first of need decide @ point want populate field drop down selections. think have 2 options.

 

option 1 - automatically calculate field each time user makes drop-down selection. it's possible user enter data , change drop down value you'll have account this.

 

option 2 - create update button users click calculate field. there still risk users change value in drop down after clicking update, want use scripting lock fields (e.g. make them protected) when update button clicked. change caption of same button or have second button when clicked unlock drop down fields.

 

the other thing need figure out how calculate field. seems me build string mixes text drop-down values. javascript this:

 

calculatedfield.rawvalue = "the accident occurred on " + table.row1.date.rawvalue + ". witnessed " + table.row1.witness1.rawvalue +

                                                  " , " + table.row1.witness2.rawvalue + ".";

 

when you're in lc designer javascript editor, hold control relative path fields , control + shift absolute path , click on fields values want access.

 

i hope points in right direction!



More discussions in LiveCycle Forms


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support