How do I create a button within a form in the fields.ini, so the following html code shows in the edit form?
- Code: Select all
<input type="button" value="Click me" onclick="msg()" />
button type in the input field
5 posts
• Page 1 of 1
button type in the input fieldHi, Steve
How do I create a button within a form in the fields.ini, so the following html code shows in the edit form?
Re: button type in the input fieldYou would need to use a block or slot and place the button somewhere in the form.
-Steve
Re: button type in the input fieldI know I can use one of blocks(block__findform_after_person_id_row, block__findform_xxx_widget, findform_after__widget, etc.) available to output the html code for the button , but I couldn't find a ideal block for that because layout looks ugly. Currently I have a block defined in fields.ini looks like this in html code:
What I want to do is add a button as a separate row or the 2nd table cell next to the 'Find' button' in the form, just like the following:
How can I do that?
Re: button type in the input fieldThere should be an appropriate slot to place it right beside the submit button.... I don't have the info handy, but if you turn on debug it will list them all out.
Alternatively you can always use javascript to modify any part of the page and add a button wherever you want it.
Re: button type in the input fieldI found there is a block findform_after__widget around the submit button. However, this block appears after all of the "Do not match selected" radio buttons for multiple-select. Is it possible to check if this findform_after__widget block after a certain element so I decide whether or not to output the html code for the button?
5 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 29 guests |