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

Need ways to add custom form in Divi module #691

Open
kumarmuthaiah opened this issue May 13, 2024 · 1 comment
Open

Need ways to add custom form in Divi module #691

kumarmuthaiah opened this issue May 13, 2024 · 1 comment

Comments

@kumarmuthaiah
Copy link

Problem Description

I need to create a form in the module. If used "table" html tag to display fields and form controls, then cannot display fine in all devices. How to handle this in module code? I need sample php code so that i can put in the module php. There is no documentations and hence asking. The form looks like below

image

The contact form module does not solve my need. The modules that support custom form are too costly to purchase now. i'm building a custom word press site that has custom predefined forms (each form uses one divi module), which sends data to the wordpress server using wordpress rest api (ajax call), that stores data in respective models as tables in mysql.

Currently I'm using "code" module to add the above form and use wordpress rest api to send the data. If the developer has custom modules then it would be better, since it renders the form in server itself, including the dynamic form fields whose data taken from tables.

Steps To Reproduce

Screenshot and/or gif

@kumarmuthaiah
Copy link
Author

kumarmuthaiah commented May 13, 2024

I used like as follows and Divi automatically aligns based on device. anyway thanks! Close it

<span style="width:150px">Admission for the Academic Year?</span>&nbsp;&nbsp;<select id="academicYear"  style="width:150px;border: 1px solid black">
  <option>2023 - 2024</option>
  <option>2024 - 2025</option>
			</select><br><br><span style="width:100px">Admission Board?</span>&nbsp;&nbsp;<select id="academicBoard"  style="width:150px;border: 1px solid black">
  <option value="">None</option>
  <option value="">CBSE</option>
  <option value="">NIOS</option>
  <option value="">IGCSE</option>
</select>
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant