Plugin Author
Franky
(@liedekef)
You can change the template form.php to your liking, see the doc:
https://ww.wp.xz.cn/plugins/events-made-easy-frontend-submit/installation/
There you can force a location.
I have tried to delete the whole <div class “input”>, but this did not work since the field is required.
So how can I
– hide the input : <div class “input” type=”hidden”> ?
– set EMEFS::field(‘event_category_ids’) to ‘1’ ?
Thanks for help.
Plugin Author
Franky
(@liedekef)
You need to look at the generated html output and put that in place of the whole EMEFS::field thing (where wanted), with type=hidden:
<input type=hidden name=xxxx value=yyy>
Yes !
The correct syntax is :
<input type="hidden" id="event_location" name="event[event_location]" value='your-event-location' >
(replaces <?php EMEFS::field('event_location'); ?>)
Note : keep the <div> inside the form, since the field is required. You can hide it with style="display:none;">.
Hope it helps