Hi guys,
I’d like to add a button to the ‘Edit Entry’ page which you can click to autofill the rest of the fields on the page, based on the content of the first. The data to fill the fields will come, in xml format, via an ajax call to a api webservice of a video hosting platform that we are using.
I don’t have a problem with the JS aspects of the button (I have it working fine on a blank test page) I was just wondering what the best way of adding it to the ‘Edit Entry’ page for the particular channel was…
Any advice would be appreciated 😊
Thanks!
Joe
Moved to Development and Programming by Moderator
I think you should be able to create a fieldtype for this kinda thing: http://ellislab.com/expressionengine/user-guide/development/fieldtypes.html
This fieldtype could check to see if an entry ID is set (so its not a new entry) and see if all the other fields you need to fill in are empty too. If these criteria are met, then you can run your JS. I’m not sure if this is the best route to go, however.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.