Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The text area value is not updated on setting the question comment/other value in the code #9696

Closed
andrewtelnov opened this issue Apr 4, 2025 · 0 comments · Fixed by #9710
Assignees
Labels
bug user issue An issue or bug reported by users v1 v2.0

Comments

@andrewtelnov
Copy link
Member

andrewtelnov commented Apr 4, 2025

The text area value is not updated on setting the question comment/other value in the code
Please review the following code and example. It doesn't work correctly:

    const survey = new Survey.Model(json);
    survey.addNavigationItem({ title: "Set comment", action: () => { 
        survey.setComment("car", "new value"); 
        alert(survey.getQuestionByName("car").comment);
        }})
    survey.onComplete.add((sender, options) => {
        console.log(JSON.stringify(sender.data, null, 3));
    });
    survey.data = { car: "other", "car-Comment": "Some text" };

The following issue is the result of this issue.

@andrewtelnov andrewtelnov added the user issue An issue or bug reported by users label Apr 4, 2025
@OlgaLarina OlgaLarina self-assigned this Apr 8, 2025
OlgaLarina pushed a commit that referenced this issue Apr 8, 2025
@OlgaLarina OlgaLarina added the v2.0 label Apr 8, 2025
OlgaLarina added a commit that referenced this issue Apr 8, 2025
…ion comment/other value in the code (#9710)

Co-authored-by: OlgaLarina <[email protected]>
(cherry picked from commit 0452316)
@OlgaLarina OlgaLarina added the v1 label Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users v1 v2.0
Projects
None yet
2 participants