1

I want to set checkbox to be checked for form rendered for specific value alone which i have retrieved from database. I can do it in jQuery, but is there any specific library functions in Symfony?

Suggestions please...

1 Answer 1

1

you can try this....

on showing the form in first you can also pass the value in form while setting

 $this->samplevariable = YOURFORM($this->getYOURMODEL->setYOURFORMFIELDNAME(array of values(1,2,3) which u get form db getYOURFORMFIELDNAME); 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.