If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Pomegranate
Posts: 33 Joined: Sun Jul 16, 2017 11:53 pm
Location: Mongolia, Ulaanbaatar
Post
by Pomegranate » Mon Oct 31, 2022 5:56 am
Hello gang,
Has anyone ever been able to use LIST_TABLE_START inside a form before? Or have tried something similar?
I wanted to use LIST_TABLE_START because it can find context as such and allows me to create any type of structure I want,
Code: Select all
<<LIST_TABLE_START('FIND SOMETHING WHERE SOMETHING') >>
<<SOMETHING.SOMETHING>>
<<SOMETHING.SOMETHING22>>
<<LIST_TABLE_END()>>
This would also work really well if I wanted to get nested records such as
Code: Select all
<<LIST_TABLE_START('FIND SOMETHING WHERE SOMETHING') >>
<<SOMETHING.SOMETHING>>
<<SOMETHING.SOMETHING22>>
<<LIST_TABLE_START('FIND SOMETHING2 WHERE SOMETHING2') >>
<<SOMETHING2.SOMETHING>>
<<SOMETHING2.SOMETHING22>>
<<LIST_TABLE_END()>>
<<LIST_TABLE_END()>>
Please help
Last edited by
Pomegranate on Fri Nov 04, 2022 6:32 am, edited 1 time in total.
Pomegranate
Posts: 33 Joined: Sun Jul 16, 2017 11:53 pm
Location: Mongolia, Ulaanbaatar
Post
by Pomegranate » Fri Nov 04, 2022 5:53 am
If anyone is interested, we(our junior developer) found a solution for this.
We gave the Parent and ID and Classes for the Children, and with some Javascript, we got all of the children with queryselectorall and childappended the children variable into the parent element by finding it with its ID.
Code: Select all
setTimeout(function(){
var answers = document.querySelectorAll(".a{ID}");
var questions = document.querySelector("#q{ID}");
answers.forEach((answer) => {
questions.appendChild(answer);
});
}, 500);