Is it possible to copy string field values into a choice list??

Vimal Priya
Giga Guru

Hi All,

I have a customized table ,users can enter a value in string field those values has to be copied in another field which is of choice datatype in the same table .

Please provide your suggestions.

Thanks in advance.

1 ACCEPTED SOLUTION

Vimal Priya
Giga Guru

Hi Kalpesh,


My Requirement is a customized table ,users can enter a value in string field those values has to be copied in another field which is of choice datatype in the same table .



I used script include and client script to do this .



Script Include will insert data into the choice table and returns value .



Return value will be added in client script as an option in current table.


View solution in original post

8 REPLIES 8

Hi VimalPriya S



Could you please explain, how did you achieve this for the reference.



Thank you,


Vimal Priya
Giga Guru

Hi Kalpesh,


My Requirement is a customized table ,users can enter a value in string field those values has to be copied in another field which is of choice datatype in the same table .



I used script include and client script to do this .



Script Include will insert data into the choice table and returns value .



Return value will be added in client script as an option in current table.


nidhi_batavia
Kilo Contributor

Hello,


Please share the code for this.


I have created two field A(u_a) as string and B (u_b) as Choice Type ,





Client-Script: onChange


On-field : A(u_a)



function onChange(control, oldValue, newValue, isLoading, isTemplate) {


    if (isLoading || newValue === '') {


          return;


    }


  var getFieldValue =   g_form.getValue('u_a');


g_form.addOption('u_b', abbc, abbc);



}




Regards


Ankit Badola




PS: Hit like, Helpful or Correct depending on the impact of the response