diff --git a/src/Pages/Client/NewMember/Membershipform.jsx b/src/Pages/Client/NewMember/Membershipform.jsx index 00d2550..87ade51 100644 --- a/src/Pages/Client/NewMember/Membershipform.jsx +++ b/src/Pages/Client/NewMember/Membershipform.jsx @@ -72,7 +72,11 @@ const Membershipform = () => { [name]: inputValue, }); }; + const [isMember, setIsMember] = useState(false); + const handleCheckboxChange = (event) => { + setIsMember(event.target.checked); + }; const handleProfessionChange = (index, value) => { const newProfession = [...formData.profession]; newProfession[index] = value; @@ -775,21 +779,44 @@ const Membershipform = () => { -
+
- 19. Are you member of any other Association If yes, mention - details: + 19. Are you member of any other Association :
- +
- + setIsMember(false)} + />
+ {isMember && ( +
+
+ If yes, mention details: +
+ +
+ )}