Keyword

Extra Fields: Setting a default on radio buttons

  • Brent Friar
  • Brent Friar's Avatar Topic Author
  • Offline
  • New Member
More
12 years 5 months ago #65331 by Brent Friar
Is there any way to set a default on a radio button extra field? I don't see an obvious way to do it.

The problem is that it's an established site with over 1700 items that would get the extra field. I would rather not have to go in to each and every item to set the value for the new field.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #65332 by william white
Replied by william white on topic Re: Extra Fields: Setting a default on radio buttons
test date w one xtra filed radiobutton [{"id":"5","value":"1"}]
This is going to take a sql select statement to set all the records
May be more complicated as there are probably many xtra fileds and it will have to be parsed and replaced
php foreach loop to do seperate sql stateents

Please Log in or Create an account to join the conversation.

  • Brent Friar
  • Brent Friar's Avatar Topic Author
  • Offline
  • New Member
More
12 years 4 months ago #65333 by Brent Friar
Still messing with this, but there doesn't seem do be any way to do this easily. As you guessed it is going to take a script to go through the records to add it directly in to the database.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum