javascript working not corectly if field is same name. February 11, 2020, 07:31:35 AM javascript will working not corectly if field is same name because phprad use a main function script (file name : page-script.js)if control name was the same name.(ex. table 1 have field group_id and table 2 have group_id too.)javascript that assign to table1 page will tricker on table2 page too.(because group_id is the same name. Quote Selected
Re: javascript working not corectly if field is same name. Reply #1 – February 11, 2020, 12:36:32 PM @tin what are you trying to achieve on the two tables, that is giving you that error? Quote Selected
Re: javascript working not corectly if field is same name. Reply #2 – February 13, 2020, 03:48:17 AM @willvin I use to disable fill on first table after input,but other table I didn't use to disable it. Quote Selected
Re: javascript working not corectly if field is same name. Reply #3 – February 13, 2020, 01:17:17 PM @tin am not understanding you, please can you be a bit clearer? Quote Selected
Re: javascript working not corectly if field is same name. Reply #4 – February 14, 2020, 05:24:43 AM @willvin to clarified as you can see in picture table1 have a field id_group and table2 have the same field name.(I use to filter data.)Then,when phprad generate code it use #ctrl-id_group as the same code on page for table1 and on page for table2.This will trigger script from page1(table1) on page2(table2) too.Because phprad use file page-scripts.js as a global script to all pages. Quote Selected
Re: javascript working not corectly if field is same name. Reply #5 – February 15, 2020, 11:29:07 AM @tin please change the database column name to something different. Quote Selected
Re: javascript working not corectly if field is same name. Reply #6 – February 16, 2020, 06:01:36 AM Quote from: willvin – February 15, 2020, 11:29:07 AM@tin please change the database column name to something different.I don't think that is a solution @willvin ,because I use as a foreign key in relation. Quote Selected Last Edit: February 16, 2020, 06:06:50 AM by tin
Re: javascript working not corectly if field is same name. Reply #7 – February 16, 2020, 01:13:22 PM @tin that is the only way until an update comes out. Unless you want to manually change the id used by the javascript and editing the Add and Edit page as custom to change the id of the field you want to change. Quote Selected Last Edit: February 16, 2020, 01:21:21 PM by willvin 1 Likes
Re: javascript working not corectly if field is same name. Reply #8 – February 16, 2020, 01:40:08 PM Quote from: willvin – February 16, 2020, 01:13:22 PM@tin that is the only way until an update comes out. Unless you want to manually change the id used by the javascript and editing the Add and Edit page as custom to change the id of the field you want to change.@willvin Thank you.Wait for update.I manual it now. Quote Selected