I've tried a lot of variations but keep getting "You have entered an Invalid Field Value ..." when I try to set the 3rd parameter(label) to add a 'url' field type to the sublist. The help isn't too descriptive, and I don't see anyone else trying this here in the forums. Anyone with an example?
From the Help:
addField(name, type, label, source)
Adds an nlobjField object to a sublist and returns a reference to it
Parameters
name {string} - The internal ID name of the field. Internal ID names must be in lowercase and contain no spaces.
type {string} - The field type for this field. Use any of the following types:
*text
*email
*phone
*date
*currency
*float
*integer
*checkbox
*select
*url
*timeofday
*textarea
*percent
*radio - only supported for sublists of type list
label {string} - The UI label for this field
source - The internalId or scriptId of the source list for this field if it's a select field